#include <stdio.h>

void main(){
    int a=2, b;
    while(a-- > 0)  //2>0
        printf("a = %d\n", a);  //a = 2-1 = 1출력
    for(b=0; b<2; b++)  //b=0~1 (2번)
        printf("a = %d\n", a++);  //a = 1출력, a = 2출력
}

Embed on website

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