0

How do make a code that prompts the user to input data like my code does not not prompt the user

int a,b,c; cout<< "\nEnter first number : "; cin>>a; cout<<"\nEnter second number : "; cin>>b; c=a+b; cout<<"\nThe Sum is : "<<c;

22nd Oct 2020, 5:59 AM
mumbere Dan
mumbere Dan - avatar
2 Answers
+ 3
It does , but will not work in sololearn as it here you have to provide all the input beforehand
22nd Oct 2020, 6:01 AM
Arsenic
Arsenic - avatar
22nd Oct 2020, 6:06 AM
Vadivelan