Geeks Projects C
Every Program is here !!!
Pages
Home
Asp.Net
Java Programming
Web Programming
Friday, 3 October 2014
WAP to find Factorial
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int a=1,x;
printf(" Enter no. ");
scanf("%d",&x);
printf("\n");
for(int i=1;i<=x;i++)
{
a=a*i;
}
printf(" %d",a);
getch();
}
No comments:
Post a Comment
Please write your doubts
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Please write your doubts