Search found 1 match

by speciale
Sun Oct 06, 2002 6:37 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 47401

10323

why its wrong?

#include <stdio.h>

int main ()
{
unsigned n=0;

while ( scanf("%u", &n) != EOF ) {
if (n < 13)
if (n >= 8) {
switch (n) {
case 8: printf("%lu\n",40320); break;
case 9: printf("%lu\n",362880); break;
case 10: printf("%lu\n",3628800); break;
case 11: printf("%lu\n",39916800 ...

Go to advanced search