본문 바로가기
Thinking/BAEKJOON

C++ BAEKJOON 2588번 곱셈

by Dev_카페인 2022. 8. 16.
반응형

[C++] BAEKJOON 2588번 : 곱셈

 

 

#include <iostream>

using namespace std;

int main()
{
	int a,b;
	
	cin >> a;
	cin >> b;

	cout << a * (b%10) << endl;
	cout << a * (b%100 - b%10) / 10 << endl;
	cout << a * (b - b%100) / 100 << endl;
	cout << a * b << endl;

	return 0;
}

 

반응형