[백준/C++] 10474 - 분수좋아해?

orangesnail·2025년 8월 4일

백준

목록 보기
129/169

https://www.acmicpc.net/problem/10474


#include <iostream>
using namespace std;

int main() {
    int a, b;
    while (true) {
        cin >> a >> b;
        if (a == 0 && b == 0) break;
        cout << a / b << " " << a % b << " / " << b << endl;
    }

    return 0;
}
profile
초보입니다. 피드백 환영합니다 😗

0개의 댓글