CYGWIN: gcc main.c
#include<stdio.h>
int main()
{
int x, y;
float fak;
for(x=1;x<=20;x++){
printf("%d!\t", x);
fak=x;
if(x>=2){
for(y=x;y>=2;y--){
fak=fak*(y-1);
}
}
printf("%.0f\n", fak);
}
getchar();
return 0;
}
For Sale: Nice Parachute, Used Once, Never Opened, Slightly Stained
Michael Comperchio
[email protected]
On Mar 14, 2009, at 11:45 AM, andrew clarke wrote:
> On Sat 2009-03-14 15:08:28 UTC-0000, John Matthews ([email protected])
> wrote:
>
>>> Or this:
>>>
>>> getchar();
>>>
>>> :-)
>>
>> Ah, but I get paid per line :-)
>
> Touché ;)
>
>
> ------------------------------------
>
> To unsubscribe, send a blank message to
> <mailto:[email protected]>.Yahoo! Groups Links
>
>
>