In this problem, we're asked to just add two input numbers and print them out accordingly. Here's the code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #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