Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <windows.h>
- int main( void )
- {
- float x = 0;
- float y;
- while(1)
- {
- y = sin(x) + 1;
- for(int i = 0; i <= y*20; i++)
- {
- printf(" ");
- }
- printf("*\n");
- x += 0.1;
- Sleep(10);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement