What's wrong with this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's wrong with this code?

I tried running it on C++ droid but it's not running, it keeps saying "expected Expression 'else'" https://code.sololearn.com/co12ufpS3G58/?ref=app

29th Sep 2019, 11:40 AM
Jane Enyinna
Jane Enyinna - avatar
4 Answers
0
you missing { in line 29 after else
29th Sep 2019, 11:45 AM
Dansteve Adekanbi
Dansteve Adekanbi - avatar
0
A brace is missing at the end of line 28 and the brace in line 31 has to be removed.
29th Sep 2019, 11:46 AM
Michael
Michael - avatar
0
actually you missing both closing and opening bracket before and after else respectively
29th Sep 2019, 11:48 AM
Dansteve Adekanbi
Dansteve Adekanbi - avatar
29th Sep 2019, 2:39 PM
Zeke Williams
Zeke Williams - avatar