#include <stdio.h>
void main() {
    int i, j, n=0;
    for (i=0; i<10; i++){          
        for (j=0; j<10; j++){      
            if (j>5) continue;      //j=0~5까지만 가능
            n++;
        }
        if(i>6) break;             //조건이 누적후에 있어 i=0~7까지 가능
    }
    printf("%d\n", n);             //결과는 8*6=48
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: