<html><div style='background-color:'><DIV>what is wrong?</DIV>
<DIV>I want to get the factorial of any number inputted</DIV>
<DIV> </DIV>
<DIV>#include <stdio.h></DIV>
<DIV>int main()<BR>/* This is a program which calculates the factorial of a number */<BR>{<BR> int a,b;</DIV>
<DIV> printf("Input number");</DIV>
<DIV> scanf("%d",&a</DIV>
<DIV> while (a >= 1) </DIV>
<DIV> {</DIV>
<DIV> a*(a--);<BR> b = a;<BR> <BR> <BR> }<BR> printf ("The factoral is %d\n", b );<BR> return 0;<BR>}<BR></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>
|