+ 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.
4 Réponses
+ 2
This is the way code playground works unfortunately.
0
yup, you need to input all data in the same screen for the entire app (seperated by returns)
0
Thanks for your suggestions.
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.