fork download
  1.  
  2. #include<stdio.h>
  3. #include<conio.h>
  4. #include<math.h>
  5. #define PI 3.14159265
  6.  
  7. int main()
  8. {
  9. int x=2, y;
  10. for(float i=0; i<=360; i+=5)
  11. {
  12. y = ceil(sin(i/180*PI)*20)/2;
  13. gotoxy(x, 12-y);printf("o");
  14. x++;
  15. }
  16. getch();
  17.  
  18. return 0;
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:18: error: conio.h: No such file or directory
prog.cpp: In function ‘int main()’:
prog.cpp:13: error: ‘gotoxy’ was not declared in this scope
prog.cpp:16: error: ‘getch’ was not declared in this scope
prog.cpp:18: error: expected `}' at end of input
stdout
Standard output is empty