+ 1

Guyss..... What do you think about this code?... It keeps on displaying error

https://code.sololearn.com/cAcnqC1ovQTo/?ref=app

20th Aug 2019, 12:41 AM
Amiel Christian Dela Rosa
Amiel Christian Dela Rosa - avatar
2 Answers
+ 1
You should add } at the bottom. On line 29,you should write Console.ReadLine() instead of Console.Read() Your program works if you input 1 1 1 1 1 M 1 And I suggest you should make sure the user only type M or F by making a default value if users' input is invalid.
20th Aug 2019, 1:43 AM
Ketchup🍅
Ketchup🍅 - avatar
+ 1
Thanks....I'll try
20th Aug 2019, 1:52 AM
Amiel Christian Dela Rosa
Amiel Christian Dela Rosa - avatar