Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <limits.h>
- int main()
- {
- int i,j,k;
- for ( j = 0; j < 3; j++ ){
- printf("j = %d\n",j);
- for ( i = 0; i < 3; i++ ){
- printf("j = %d\n",j);
- for ( k = 0; k < 3; k++ ){
- printf("j = %d\n",j);
- if( i == 0 && j == 0 && k == 0){
- goto zero;
- }
- }
- }
- }
- zero: printf( "Goto zero. i,j,k = %d\n", i,j,k );
- return 0;
- }
- /* resultat
- j = 0
- j = 0
- j = 0
- Goto zero. i,j,k = 0
- 10:09:53: /home/mariomoser/C_learning_journey/build-exemple_1-Desktop-Debug/exemple_1 exited with code 0
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement