~cpp #include <stdio.h> void main() { int n; int a; printf("몇단인지 입력하세요"); scanf("%d",&a); for(n=1;n<=9;n=n+1) { printf("%d*%d:%d\n",a,n,a*n); a*n; }
~cpp #include <stdio.h> void main() { int n; int a; printf("몇단인지 입력하세요"); scanf("%d",&a); for(n=1;n<=9;n=n+1) { printf("%d*%d:%d\n",a,n,a*n); a*n; }