delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/21/09:11:58

From: "Jyri Vahtera" <jyrva AT mbnet DOT fi>
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 <stdio.h>
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?


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019