answersLogoWhite

0

C Program to find factorial of a numberSimple C Programint main()

{

int n,i,f=1;

printf("enter any num \n");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

f=f*i;

}

printf("factorial is %d ",f);

system("pause");

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Mini project on employee database using linked list on c language code?

mini project data structure


Coding constants in c?

Coding constants in c means writing the constants in a certain way that the c language understands.


Links for mini projects in opengl with coding in c?

There are many projects at www.openglprojects.in


What are the examples of procedural language in C coding?

c is in inteself a procedural language so your question does not make sense


What is the difference between C and Vbnet?

It is just a different coding language, but C is more for business that VBNET


Data Flow Diagram of mini project of Hospital Management in c?

ans


What has the author Robert C Seacord written?

Robert C. Seacord has written: 'Secure coding in C and C++' -- subject(s): C (Computer program language), C++ (Computer program language), Computer security


Why coding of c language is colourful?

I think it is the 'syntax highlighing' what you mean. It's a feature of the text-editor.


C Matrix addition program?

How we can addition Two Matrix plz send coding in C language mahesh dhanotiya astah_mahesh@rediff.com how i can built a square matrix in c,


What does the job of c operators consist of?

A C operator is not a job or profession but rather a coding language. C operators perform certain tasks in programming such as a "+ " operator performs addition.


How do you make software for free?

Makuing a software requires that you know the language like c++ or c sharp. You will tha do some coding and compile that result in a software.


What is a popular modern programming language and why?

Well I would say C++, or C, is pretty popular, since a lot of games use this type of coding language to code their games. But C++ is too hard, so you should start off with something easier if this is your first coding experience. Java is also very popular because of its simplicity and wide range of application.