백준 10952 c++

magicdrill·2024년 3월 30일
0

백준 문제풀이

목록 보기
234/654

백준 10952 c++

#include <iostream>
using namespace std;

int main(void)
{
	int a, b;

	while (1)
	{
		cin >> a >> b;
		if (a == 0 && b == 0)
		{
			break;
		}
		else if ((a > 0 && a < 10) && (b > 0 && b < 10))
		{
			cout << a + b << endl;
		}
		else
		{
			;
		}
	}
	return 0;
}

0개의 댓글