Computer Science, asked by dineshrayan5118, 1 month ago

To find the factorial of a number using function

Answers

Answered by ad430596
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 ajaykumardas7754
2

Answer:

Hey i dont know.

Mark him as a brainliest

ad430596

Similar questions