Advertisement
Wojtekd

FALAAAAA

Mar 26th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4. #include <windows.h>
  5.  
  6. int main( void )
  7. {
  8.     float x = 0;
  9.     float y;
  10.     while(1)
  11.     {              
  12.         y = sin(x) + 1;
  13.        
  14.         for(int i = 0; i <= y*20; i++)
  15.         {
  16.             printf(" ");
  17.         }
  18.         printf("*\n");
  19.         x += 0.1;
  20.         Sleep(10);     
  21.     }
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement