Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

PR06RNt Nl1B 1Bt 0tl6 0f 0PtR10Rt

0uFSTl0t 1 _ WAP to find the factorial


value of any number entered through
keyboard ?

S0luTl0t

#incIude<stdio.h>
#incIude<conio.h>
void main()
{
int n,i,fact=1;
cIrscr();
printf(" Enter the number \n ");
scanf(" %d ", &n );
for(i=1;i<=n;i++)
{
fact=fact*i;
}
printf(" FactoriaI vaIue of the number is= %d
",fact);

getch();
}


OU97U9

aeou eAo aamou

o

9aoeouIaI .aao oJ eAo aamou Ii =

720

You might also like