백준 알고리즘(C/C++) - 11022번 A+B - 8
- 알고리즘
- 2021. 5. 29.
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d", &a);
for (int i = 1; i <= a; i++) {
scanf("%d %d", &b, &c);
printf("Case #%d: %d + %d = %d\n", i, b, c, b + c);
}
return 0;
}
#include <iostream>
int main() {
int a, b, c;
std::cin >> a;
for (int i = 1; i <= a; i++) {
std::cin >> b >> c;
std::cout << "Case #" << i << ": " << b << " + " << c << " = " << b + c << std::endl;
}
return 0;
}