+ 14
Use a do-while loop and run it until input is -1. Or you can use an infinite loop as well. If input is -1, then break the loop. Give it a try and post your code here if you're stuck :)
6th Nov 2017, 5:49 AM
Shamima Yasmin
Shamima Yasmin - avatar