반응형
문제 : https://www.acmicpc.net/problem/2739
풀이과정
iostream을 이용하여 출력
전체코드(C++14)
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
cout << n << " * 1 = " << n * 1 << endl;
cout << n << " * 2 = " << n * 2 << endl;
cout << n << " * 3 = " << n * 3 << endl;
cout << n << " * 4 = " << n * 4 << endl;
cout << n << " * 5 = " << n * 5 << endl;
cout << n << " * 6 = " << n * 6 << endl;
cout << n << " * 7 = " << n * 7 << endl;
cout << n << " * 8 = " << n * 8 << endl;
cout << n << " * 9 = " << n * 9 << endl;
}
최근댓글