find and display factorial of given number
Answers
Answered by
2
Answer:
Write a C program to calculate the factorial of a given number.
Pictorial Presentation:
Sample Solution:
C Code: #include <stdio.h> void main(){ int i,f=1,num; printf("Input the number : "); scanf("%d",&num); for(i=1;i<=num;i++) f=f*i; printf("The Factorial of %d is: %d\n",num,f); } ...
Flowchart:
C Programming Code Editor:
Explanation:
Hope it helps you dear friend
Answered by
4
Hey there this is your answer...!!!
Write a C program to calculate the factorial of a given number.Pictorial Presentation:Sample Solution:C Code: #include <stdio.h> void main(){ int i,f=1,num; printf("Input the number : "); scanf("%d",&num); for(i=1;i<=num;i++) f=f*i; printf("The Factorial of %d is: %d\n",num,f); } ...Flowchart:C Programming Code Editor
hope this helps you...!!!
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
World Languages,
6 months ago
Geography,
6 months ago
Biology,
11 months ago
Science,
11 months ago