Advertisement
deko96

Happy Birthday Maria ^_^

Dec 4th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <windows.h>
  4. #include <conio.h>
  5.  
  6. int main()
  7. {
  8.  
  9.     int i;
  10.     char str[] = {"Happy Birthday Maria ^_^ "};
  11.     int size = strlen(str);
  12.     int load = 0;
  13.     for(i = 0; i <= 10; i++)
  14.     {
  15.         system("cls");
  16.         printf("Loading... %d%%", load);
  17.         Sleep(250);
  18.         load = load+10;
  19.         if(load == 110)
  20.             break;
  21.     }
  22.     printf("\n");
  23.     for(i = 0; i < size; i++)
  24.     {
  25.         printf("%c", str[i]);
  26.         Sleep(150);
  27.     }
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement