Advertisement
rootUser

label use

Jun 11th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int counter = 100;
  5.  
  6.  
  7.     label1:
  8.         if(counter==0)
  9.         {
  10.             goto label2;
  11.         }
  12.         printf("Lets do it ! \n");
  13.         counter--;
  14.         goto label1;
  15.  
  16.     label2:
  17.  
  18.  
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement