illegal else without matching if help?
I made this program that calculates (a+b)/2
if c=0 and (a+b+c)/3 if d=0 and etc, and my visual studio says illegal else without matching if and i don`t know what to do, sorry if it is in my language but it is homework for after vacation!
http://pastebin.com/up6V5t9rⓘ
i can explain everything here!
i know that i can`t type 0 at more than one int and i have there a cout with instructions saying that you need to type 0 after the number you wanna stop and at everything else after type 1!
- - - Updated - - -
i debugged it... didn`t need to put ; after if, admin close thread please!
if c=0 and (a+b+c)/3 if d=0 and etc, and my visual studio says illegal else without matching if and i don`t know what to do, sorry if it is in my language but it is homework for after vacation!
http://pastebin.com/up6V5t9rⓘ
i can explain everything here!
i know that i can`t type 0 at more than one int and i have there a cout with instructions saying that you need to type 0 after the number you wanna stop and at everything else after type 1!
- - - Updated - - -
i debugged it... didn`t need to put ; after if, admin close thread please!
