I need some help in that program to read 2 numbers and print sum of them
the program will be tested on one or more test cases. The first line of the input will be a single integer T, the number of test cases (1 ≤ T ≤ 100). Followed by the test cases, each test case is described in one line which contains 2 integers separated by a single space X Y (1 ≤ X,Y ≤ 100). X and Y are the 2 numbers which you should print the sum of them.
what's the suitable way to write this code as included
rose_2
0
Junior Poster in Training
Recommended Answers
Jump to PostHi @rose_2,
Do you know how to code an "Hello World" type program in C++ ?
If you do, then you can prompt for input.
Then the next thing ... is to code to take in some number ...
and then to take in numbers in a loop and to …
All 4 Replies
DenisOxon
12
Posting Whiz
Taywin
312
Posting Virtuoso
David W
131
Practically a Posting Shark
rose_2
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.