Hello Community,
I wrote a small piece of code to print a fairly large number. Something along the lines of 30!++.
The problem is that what I get instead is a group of random numbers with no meaning, seemingly.
Am I using the notation wrong here?
Code:#include<stdio.h> int main(void){ int i,lim; long double k; k=1; scanf("%d",&lim); for(i=1;i<lim;i++){ k*=i; printf("%Ld\n",k); } system("pause"); }