From: "Jyri Vahtera" Newsgroups: comp.os.msdos.djgpp Subject: Problem in Factorial Program Date: Thu, 21 Jun 2001 11:58:02 +0300 Organization: Song Networks Internet services Lines: 19 Message-ID: <9gsd0l$34e$1@news.clinet.fi> NNTP-Posting-Host: mb-u08ip075.mbnet.fi X-Trace: news.clinet.fi 993113941 3214 194.100.168.156 (21 Jun 2001 08:59:01 GMT) X-Complaints-To: abuse AT clinet DOT fi NNTP-Posting-Date: 21 Jun 2001 08:59:01 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Here is code: #include long factorial(n) int n; { long result = 1; while (n>1) { result = result*n; n = n - 1; } return result; } main() { } Where I put the main?