Calculation of Factorial of a Number
This program calculates the Factorial of a number.
Factorial is represented by the ! sign..
For E.g. 5! = 5*4*3
Write a program to find the factorial value of any number entered
through the keyboard.
#include<stdio.h>
main()
{
int number, factorial, temp;
printf("Enter the number whose factorial is to be calculated:");
scanf ("%d", &number);
temp=1;
factorial=1;
while (temp <= number)
{
factorial=factorial*temp;
temp++;
}
printf("The factorial of the entered number is:%d", factorial);
}
The file can be found at:
Download File.
Factorial is represented by the ! sign..
For E.g. 5! = 5*4*3
Write a program to find the factorial value of any number entered
through the keyboard.
#include<stdio.h>
main()
{
int number, factorial, temp;
printf("Enter the number whose factorial is to be calculated:");
scanf ("%d", &number);
temp=1;
factorial=1;
while (temp <= number)
{
factorial=factorial*temp;
temp++;
}
printf("The factorial of the entered number is:%d", factorial);
}
The file can be found at:
Download File.
Comments
This Program is really very fantastic.
i thanks a lot of you ... this is helpful for me ...
sniffies Sniffies is a location-based networking application specifically designed for gay, bi trans, queer and curious males who want to meet other like-minded individuals to discover their sexuality.
y2mate-com The website of Y2mate has standard ads like a pop-up asking you to give access to the notifications on your phone.
erome Finding the perfect woman or keeping track of the man who posts footage of his gorgeous wife having a sexy time are the main challenges for amateur porn.