Mrm2299

Untitled

Sep 24th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<math.h>
  4. #define PI 3.14159265
  5.  
  6. int main()
  7. {
  8.     int x=2, y;
  9.     for(float i=0; i<=360; i+=5)
  10.     {
  11.         y = ceil(sin(i/180*PI)*20)/2;
  12.         gotoxy(x, 12-y);printf("o");
  13.         x++;
  14.     }
  15.     getch();
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment