1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
 
int main() {
 
    int input1, input2;
 
    while (1) {
        std::cout << "입력: ";
        std::cin >> input1, std::cin >> input2;
        (input1 > input2) ? std::cout << input1 << "이 더 큼" << std::endl : std::cout << input2 << "이 더 큼" << std::endl;
    }
}
cs


+ Recent posts