#include <stdio.h>
// 2~9단 출력하기
int main() {
int a=2;
int b=9;
int mul=0;
int c=1;
for(a=2;a<=b;a++){ // 초기식;조건식;증감식
if(a%2!=0){
continue;
}
for(c=1;c<10;c++){
mul=a*c;
printf("%d*%d=%d\n", a, c, mul); // 2*1=2 2*2=4
if(c==a){
break;
}
}
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: