0

Why this code does not work pls help me

I have done this code with if statements but with switch it is giving an error does anyone know WHY https://code.sololearn.com/cm5EAVnqTgH1/?ref=app

2nd Sep 2017, 4:47 AM
Mert
Mert - avatar
5 Respostas
+ 9
some basic errors like : 1. switch(n); it should be switch(n){ } 2.U forgot ; after return 0. 3.added unnecessary { } in line 5 https://code.sololearn.com/cyz48WH4h6Aa/?ref=app
2nd Sep 2017, 5:31 AM
P R
P R - avatar
+ 5
You've written that: switch (n);{ ... } but you have to write a switch statement like that: switch(n){ ... }
2nd Sep 2017, 4:58 AM
Dapper Mink
Dapper Mink - avatar
+ 3
<3
2nd Sep 2017, 11:48 AM
Dapper Mink
Dapper Mink - avatar
+ 2
Thank you for doing this M Squared
2nd Sep 2017, 11:39 AM
Dapper Mink
Dapper Mink - avatar
+ 1
thanks to all who have answered. you guys helped me very much thanks
3rd Sep 2017, 10:51 PM
Mert
Mert - avatar