Jumps: Demo

Variables and data types
  • Ses3Jumps Source Code

    #include <stdio.h>

    #include <stdlib.h>

     

    int main(int argc, char *argv[]) {

        printf("Break demo\n");

        int i;

        for (i = 0; i < 10; i++) {

            if (i == 5) {

                break;

            }

            printf("%d\n", i);

        }

     

        printf("Continue demo\n");

        int c;

        for (c = 0; c < 10; c++) {

            if (c == 5) {

                continue;

            }

            printf("%d\n", c);

        }

        return 0;

    }