In this problem, we're asked to just add two input numbers and print them out accordingly. Here's the code.
#include <bits/stdc++.h>
using namespace std;
int main() {
int T, i=1;
scanf("%d", &T);
while (T-- > 0) {
int a, b;
scanf("%d %d", &a, &b);
printf("Case %d: %d\n", i++, a+b);
}
return 0;
}
No comments:
Post a Comment