05-18 17:53
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

코딩일지

백준코딩 알고리즘 2739번: 구구단 본문

코딩/백준코딩

백준코딩 알고리즘 2739번: 구구단

여유거북이 2016. 11. 5. 16:07

N을 입력받은 뒤, 구구단 N단을 출력하는 프로그램을 작성하시오. 출력 형식에 맞춰서 출력하면 된다.

 

 

 

#include <stdio.h>
#include <string.h>
int main(void)
{
 int n, i;

 scanf("%d", &n);

 for(i = 1; i < 10; i++)
  printf("%d * %d = %d\n", n, i, n * i);
}

Comments