0

is this code wrong # include <iostream> using namespace std; int main() { int age; cin>> age; switch(

serious

17th Feb 2020, 9:52 PM
MÆŘEÁLT
MÆŘEÁLT - avatar
6 Réponses
+ 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.
17th Feb 2020, 10:34 PM
Shadow
Shadow - avatar
+ 1
you forgot to close your switch statement with a }
17th Feb 2020, 11:12 PM
Kylie
Kylie - avatar
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; }
17th Feb 2020, 11:08 PM
MÆŘEÁLT
MÆŘEÁLT - avatar
0
thats the rest
17th Feb 2020, 11:08 PM
MÆŘEÁLT
MÆŘEÁLT - avatar
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
18th Feb 2020, 3:14 AM
Ipang
0
just add another paranthesis '}' before return0; and ur code will be complete!😁😀
18th Feb 2020, 12:09 PM
mohsin khan
mohsin khan - avatar