Thursday, 18 July 2013

Program to a Print Factorial of a Number

#include <stdio.h>
void main()
{
int a,b,F=1;
clrscr();
printf("Enter the Value");
scanf("%d",&b);
for (a=1;a<=b;++a)
F=F*a;
printf("%d",F);
getch();

}

No comments:

Post a Comment