0

How to display the input number using loop in c++?

18th Aug 2019, 12:44 PM
Liit
Liit - avatar
5 Respuestas
0
c++
18th Aug 2019, 12:58 PM
Liit
Liit - avatar
0
How do you mean, display the input number with a loop? Why not just print it out? Or am I missing something?
18th Aug 2019, 1:02 PM
Paul Grasser
Paul Grasser - avatar
0
for example, you'll just have to input positive numbers. when you input a negative number, the loop will stop and the positive numbers you inputted will print.
18th Aug 2019, 1:05 PM
Liit
Liit - avatar
0
panda kaye you will have to read them in as a string first to get the negative, and then convert it to an integer if you need
18th Aug 2019, 2:43 PM
Zeke Williams
Zeke Williams - avatar