Intermediate Part II Problem: Make a program that calculate the Factorial. #include
#include <stdio.h> void main() { clrscr(); int factorial=1,no; printf("Enter the no: "); scanf("%d",&no); for(int i=no;i>=1;i--) { factorial*=i; // factorial=factorial*i; } printf("\nFactorial of %d = %d",no,factorial); getch(); }
Click the link below to see more examples URL: http://ravianeducation.blogspot.com E-Mail: [email protected] Farhan: 03008855006