dovelet - 세자리수 곱셈/three
#include <iostream>using namespace std;int main(){int input1, input2;cin >> input1 >> input2;int a = input2 / 100;int b = (input2 - (a * 100)) / 10;int c = input2 % 10;cout << input1 * c << endl;cout << input1 * b << endl;cout << input1 * a << endl;cout << (input1 * c) + (input1 * b * 10) + (input1 * a * 100) << endl;return 0;}
'algorithm ' 카테고리의 다른 글
dovelet - 손해 본 금액/business (0) | 2016.07.08 |
---|---|
dovelet - 인공지능 시계/koi_watch (0) | 2016.07.07 |
dovelet - 초 변환/sec (0) | 2016.07.07 |
dovelet - 거스름 돈/change (0) | 2016.07.07 |
dovelet - 몫과 나머지 구하기/q_r (0) | 2016.07.07 |