fork(2) download
  1.  
  2. #include<math.h>
  3. h(x){return x&2?pow(x,x&1?x:2):(x&1)*2*x;}
  4. main()
  5. {int i;
  6. for(i=0;i<20;++i)
  7. printf("%u %u\n", i, h(i));
  8. }
  9.  
  10.  
  11.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
0 0
1 2
2 4
3 27
4 0
5 10
6 36
7 823543
8 0
9 18
10 100
11 2147483648
12 0
13 26
14 196
15 2147483648
16 0
17 34
18 324
19 2147483648