Recent Posts

Tuesday 12 May 2015

Factorial of the number

#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.

0 comments:

Post a Comment

 
biz.