~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;
	}

Retrieved from http://wiki.zeropage.org/wiki.php/구구단/김유정
last modified 2021-02-07 05:28:44