To find the factorial of a number using function
Answers
Answered by
3
Answer:
1. #include <stdio.h>
2. int fact(int);
3. void main() {
4. int no,factorial;
5. printf("Enter a number to calculate it's factorial\n"); scanf("%d",&no);
6. factorial=fact(no); ...
7. //printf("Factorial of the num(%d) = %d\n",no,fact(no));//another way of calling a function//comment above two lines if you want to use this. ...
8. int fact(int n)
Hope it helps you.
Mark me as brainliest.
Thank you
Answered by
2
Answer:
Hey i dont know.
Mark him as a brainliest
ad430596
Similar questions
Business Studies,
23 days ago
Math,
23 days ago
English,
23 days ago
Business Studies,
1 month ago
Math,
8 months ago
Chemistry,
8 months ago
English,
8 months ago