language: Pike (pike 7.6.86)
date: 255 days 7 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int main() {
  string count;
  int cint;
  int fatorial = 1;
 
  count = Stdio.stdin->gets();
  sscanf(count, "%d", cint);
  
  while (cint > 1) {
 
     fatorial = fatorial * cint;
     cint--;
 
  }
 
  write("%d\n", fatorial);
  return 0;
}
  • upload with new input
  • result: Success     time: 0.14s    memory: 10176 kB     returned value: 0

    5
    
    120