electricmaster

Something I wrote while learning C

Aug 9th, 2011
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.04 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3.     int forl;
  4.     int whilel;
  5.     int doct;
  6.     printf("WELCOME TO THE WONDERFUL WORLD OF LOOPS! :D\n");
  7.     printf("PWEASE WELCOME TEH FOR LOOPZ");
  8.     for(forl = 0; forl < 10; forl++){
  9.         printf("TEH FOR LOOPZ R AT %d!\n", forl);
  10.        
  11.     }
  12.     printf("THANK YOUUZ FOR LOOPZ. PRESS TEH ENTER BUTTONZ FOR TEH MOARZ, MMK? \n");
  13.     getchar(); // Wait for button...
  14.     printf("BE TEH READYZ FOR TEH 1337 NEXT ACT... TEH WHILEZ!\n");
  15.     whilel = 0;
  16.     while(whilel < 10){
  17.         printf("TEH WHILE LOOPZ R AT TEH %dz!\n", whilel);
  18.         whilel++;
  19.     }
  20.     printf("DANK UUZ, WHILEZ :D PRESS EET NAO :D\n");
  21.     getchar(); // Wait for button...
  22.     printf("NEXT WE R HAZ TEH POINTY-LESS WHILE DO LOOPZ! :D\n");
  23.     doct = 0;
  24.     do{
  25.         printf("IMMA DO EET IMMA DO EET (#%d)\n", doct);
  26.         doct++;
  27.     } while(doct < 10);
  28.     printf("FINALLY IT R OVERZZZ *booo*. YOU R KNOWZ TEH DRILLZ. PRESS EET PWEASE\n");
  29.     getchar();
  30.     printf("OOPZ. OUR 1337 MEGA LOOPZ AREN'T HEREZ 'CAUSE IT R DUNT EXEEST. AWWZ I GUESS DAT MEANS WE R DUNZ HEREZ. BAIBAI!");
  31.     return 0;
  32. }
Add Comment
Please, Sign In to add comment