0
is this code wrong # include <iostream> using namespace std; int main() { int age; cin>> age; switch(
serious
6 Respuestas
+ 1
It looks as though you didn't post the whole code, therefore judging is not possible. The most convenient way would be to create a code on the playground, save it, and then share the link here so we may have a look and give you feedback.
+ 1
you forgot to close your switch statement with a }
0
# include <iostream>
using namespace std;
int main()
{
int age;
cin>> age;
switch(age){
case 16:
cout << "You cant vote" << endl;
break;
case 70:
cout << " You are way past your youthful stage"<< endl;
return 0;
}
0
thats the rest
0
Use the question title to describe the question in brief and use the Description for additional details and related links. For future reference please follow this guide to posting a question 👍
https://www.sololearn.com/Discuss/333866/?ref=app
0
just add another paranthesis '}' before return0; and ur code will be complete!😁😀