문제 링크입니다: www.acmicpc.net/problem/2739
2739번: 구구단
N을 입력받은 뒤, 구구단 N단을 출력하는 프로그램을 작성하시오. 출력 형식에 맞춰서 출력하면 된다.
www.acmicpc.net
간단한 구현 문제였습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
const int MAX = 9; | |
int main(void) | |
{ | |
ios_base::sync_with_stdio(0); | |
cin.tie(0); | |
int N; | |
cin >> N; | |
for (int i = 1; i <= MAX; i++) | |
{ | |
cout << N << " * " << i << " = " << N * i << "\n"; | |
} | |
return 0; | |
} |


개발환경:Visual Studio 2017
지적, 조언, 질문 환영입니다! 댓글 남겨주세요~
반응형
'알고리즘 > BOJ' 카테고리의 다른 글
백준 2742번 기찍 N (0) | 2021.04.25 |
---|---|
백준 2741번 N 찍기 (0) | 2021.04.25 |
백준 2721번 삼각수의 합 (0) | 2021.04.25 |
백준 2720번 세탁소 사장 동혁 (0) | 2021.04.25 |
백준 2576번 홀수 (0) | 2021.04.25 |