#include<studio.h>
void main() { int num,sum=1; Printf ("Enter the number:"); scanf("%d",&num); While(num--!=0) sum*=num; printf("factorial is %d",sum); }
Smart Siva
Author & Editor
In Life every second is important, In programming every line of code is important.
LetsScript
0 comments:
Post a Comment