Thursday, June 23, 2016

SOLUTION OF URI 1153


//  1153   (Mahmud_Jamil) BRUR
//   Simple Factorial



#include <stdio.h>
int main()
{
    int N,a,m=1;
    scanf("%d", &N);
    for(a=N;a>=1;a--)
        m*=a;
    printf ("%d\n",m);
    return 0;
}






0 comments:

Post a Comment