So the program I'm running starts of with 6 loops. each loop is inside of its own if/else if statement. I am getting an error that says 'if' without 'else'. Does this mean I just need to put an else statement at the end the maybe says something like "invalid entry" or something?? I think this is correct if not please help. Thank you in advance.
3 Replies - 98 Views - Last Post: 16 January 2013 - 05:35 PM
#1
I'm creating a program that lets the user select between 1 of 6 lo
Posted 16 January 2013 - 05:26 PM
Replies To: I'm creating a program that lets the user select between 1 of 6 lo
#2
Re: I'm creating a program that lets the user select between 1 of 6 lo
Posted 16 January 2013 - 05:29 PM
Make sure there isn't a bracket before the if statement, else it will expect it to be an else for that last if statement.
#3
Re: I'm creating a program that lets the user select between 1 of 6 lo
Posted 16 January 2013 - 05:30 PM
Are you sure the error is "if without else," because that's not an error?
#4
Re: I'm creating a program that lets the user select between 1 of 6 lo
Posted 16 January 2013 - 05:35 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|