0

How can i execute my c++ program here??

I have written a code and when i run, it shows me output but not asked for any input

23rd Mar 2019, 10:08 AM
Gaurav Jain
4 Answers
+ 3
Please add code with your questions to get better suggestion. Please review the post https://www.sololearn.com/post/75089/?ref=app
23rd Mar 2019, 10:12 AM
Scooby
Scooby - avatar
+ 2
It's look fine.. run your code.. a box will come.. give your input there.. ok
23rd Mar 2019, 10:18 AM
Scooby
Scooby - avatar
0
#include <iostream> using namespace std; int main() { int age,ageResult; cout<<"Enter your age:"<<endl; cin>>age; switch(age) { case 0 : ageResult = -1; break; default : ageResult = 2; break; } cout<<"Your age belongs to:"<<ageResult<<"group"; return 0; }
23rd Mar 2019, 10:14 AM
Gaurav Jain
0
Tx
23rd Mar 2019, 10:28 AM
Gaurav Jain