Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

getting wrong answer in small factorial

$
0
0

include<stdio.h>

int main(){ int a,i,j; double z; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d",&j);="" for(z="1;j">0;j--) z=z*j; printf("%.0lf\n",z); } return 0; }


Viewing all articles
Browse latest Browse all 39796

Trending Articles