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
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
+ 2
It's look fine.. run your code.. a box will come.. give your input there.. ok
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;
}
0
Tx