/*factirial*/
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=1,i;
clrscr();
printf("enter n ");
for(i=1;i<n;i++)
{
scanf("%d",&n);
}
for(i=1;i<n;i++)
{
s=s*i;
}
printf("factorial is %d",s);
getch();
}
ajay kandari 0 Newbie Poster
Infarction 503 Posting Virtuoso
Aia 1,977 Nearly a Posting Maven
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Aia 1,977 Nearly a Posting Maven
John A 1,896 Vampirical Lurker Team Colleague
ajay kandari 0 Newbie Poster
ajay kandari 0 Newbie Poster
ajay kandari 0 Newbie Poster
ajay kandari 0 Newbie Poster
Aia 1,977 Nearly a Posting Maven
Aia 1,977 Nearly a Posting Maven
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Salem 5,199 Posting Sage
ajay kandari 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Salem 5,199 Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.