+ 1

Didn't get this : You can accept user input multiple times throughout the program

#include <iostream> using namespace std; int main() { int a, b; cout << "Enter a number \n"; cin >> a; cout << "Enter another number \n"; cin >> b; return 0; } When you are running this code it will ask for the input for once and it display the other by it's own. Please somebody suggest on this.

29th Aug 2019, 8:39 PM
pradeep zeni
pradeep zeni - avatar
4 Respuestas
+ 2
This is the way code playground works unfortunately.
29th Aug 2019, 9:01 PM
Sonic
Sonic - avatar
0
yup, you need to input all data in the same screen for the entire app (seperated by returns)
29th Aug 2019, 9:28 PM
Brave Tea
Brave Tea - avatar
0
Thanks for your suggestions.
29th Aug 2019, 10:24 PM
pradeep zeni
pradeep zeni - avatar
0
But, my question was to understand that coding or can explain the same to me. Just an eg, explain newton's law, accordingly i need to explain the whole law of newton by elaborating the laws.
29th Aug 2019, 10:26 PM
pradeep zeni
pradeep zeni - avatar