[Programmers] #120804 - 두 수의 곱 구하기 [Java][C++][Python]
[Programmers] #120804 - 두 수의 곱 구하기 [Java][C++][Python]
1. 아이디어
두 수의 곱을 그대로 반환하면 되는 문제다.
2. 코드
풀이 [Java][C++][Python]
1
2
3
4
5
class Solution {
public int solution(int num1, int num2) {
return num1 * num2;
}
}
1
2
3
4
5
6
#include <bits/stdc++.h>
using namespace std;
int solution(int num1, int num2) {
return num1 * num2;
}
1
2
def solution(num1, num2):
return num1 * num2
This post is licensed under CC BY 4.0 by the author.