Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- #include<math.h>
- #define PI 3.14159265
- int main()
- {
- int x=2, y;
- for(float i=0; i<=360; i+=5)
- {
- y = ceil(sin(i/180*PI)*20)/2;
- gotoxy(x, 12-y);printf("o");
- x++;
- }
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment