Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h> // usleep
- #define TIME 100000
- void printn(int nextStrings, char symbol);
- int main()
- {
- while(1) {
- printn(40, '|');
- printn(0, '-');
- usleep(TIME);
- printn(40, '\\');
- printn(0,'/');
- usleep(TIME);
- printn(40, '-');
- printn(0, '|');
- usleep(TIME);
- printn(40, '/');
- printn(0,'\\');
- usleep(TIME);
- }
- return 0;
- }
- void printn(int nextSteps, char symbol) {
- for(int i = 0; i < nextSteps; i++)
- printf("\n");
- printf("%c", symbol);
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement