I am trying to create a factorial program, to release on my site under the CPL. I have tried switching the code around in various different ways, but I cannot get the .exe to print the answer (variable), although the code breaks!! Could you give me some advice? The code is below. Thanks in advance!!!!
P.S.- I ran out of time to fix the syntax error(s) in this set up, but the other simular and error free programs did the same thing: get to the printf and skip the variableCode:main() { int i; int n; int z; scanf("%d",&i); z = i - 1; for (n = i * z; z>0); { if (z = 1); break; putchar ('\n'); putchar ('\n'); printf("Your Answer is %d",n); putchar ('\n'); putchar ('\n'); system ("pause"); } }![]()



LinkBack URL
About LinkBacks



