C program to find Factorial of a number A+ A- Print Email C program : How to find factorial of a number #include<stdio.h> int main(){ int i=1,f=1,num; printf("Enter a number: "); scanf("%d",&num); while(i<=num){ f=f*i; i++; } printf("Factorial of %d is: %d",num,f); return 0; } Output:
c language codes about math
ReplyDeleteFactorial Function