fork(2) download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4.  
  5. int f(int x) {
  6. return 30+2*sin(93*sin(145*x+155));
  7. }
  8.  
  9. int main() {
  10. int x;
  11. for(x=1;x<=12;x++) {
  12. printf("%d => %d\n",x,f(x));
  13. }
  14. }
  15.  
Runtime error #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
1 => 31
2 => 28
3 => 31
4 => 30
5 => 31
6 => 30
7 => 31
8 => 31
9 => 30
10 => 31
11 => 30
12 => 31