Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- void sleep (long milli)
- {
- clock_t end, current = clock();
- for(end = current + milli; current < end; current = clock());
- }
- int main(void) {
- int s = 0;
- for (; ;) {
- sleep (100000);
- printf(" \033[2J");
- switch (s) {
- case 0 :
- printf(" :LOL:ROFL:ROFL \n");
- printf(" ______|_____ \n");
- printf(" L / []\x5c \n");
- printf(" O === \x5c \n");
- printf(" L \x5c______________] \n");
- printf(" | | \n");
- printf(" -------------/ \n");
- s = 1;
- break;
- case 1 :
- printf(" ROFL:ROFL:LOL: \n");
- printf(" ______|_____ \n");
- printf(" / []\x5c \n");
- printf("LOL=== \x5c \n");
- printf(" \x5c______________] \n");
- printf(" | | \n");
- printf(" -------------/ \n");
- s = 0;
- break;
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment