#include <stdio.h>
// Taken from here: https://msdn.microsoft.com/en-us/library/2c002fdz.aspx

int main() {
   int i, j;
   for(i = 0; i < 10; i++) {
      printf_s("Outer loop executing. i = %d\n", i);
      for(j = 0; j < 3; j++) {
         printf_s(" Inner loop executing. j = %d\n", j);
         if(i == 5) goto stop;
      }
   }
   /*This message does not print:*/
   printf_s("Loop exited. i = %d\n", i);
   stop: 
   printf_s("Jumped to stop. i = %d\n", i);
}