Saturday, 4 July 2015

C Program To Find Factorial Of The Given Number

In Freshers junction blog previous topic is “What is the Difference between varchar and Varchar2”. Freshers Junction Also Explains all Technical interview Questions and provide Registration links of Software Developer profile (Only MNC Companies).

Here now we are discussing about “How to write a Program to find Factorial of a Given Number”. Here we are not using Recursion function. When a Technical interviewer asking you to write a Program to find Factorial of a Given Number, then you are writing a program by using recursive function, it may give negative impression on you. So you need to C program for finding factorial of given without using recursive function.

                As you are seeing in Above program we are using only a Single while loop for executing Factorial program. This is the most easiest program to find factorial of a given number.

Output of a Factorial Program for given number:


Enter a Number:  5
Factorial of 5 is : 120

If you are given Input number  as 5, that is if you want to find a factorial of 5. Then the program gives output as 120
.
Note: press CTRL+D to bookmark this page. Then it may easy to remind once again.

If you have any queries on writing a program to find factorial of given number, Then comment here. We are ready to Help you.

You may Also search in Google as:
Freshersjunction: write a only C Program To Find Factorial Of The Given Number
, factorial program without using recursive function, write a factorial program by using while function. Simple factorial program. Factorial program in easiest way. Program for finding factorial of a given number.

0 comments:

Post a Comment

Job Search

Loading...
 
Copyright © . Freshers Junction - Posts · Comments
Theme Template by Freshers Junction · Powered by Blogger