I'm trying to get my program to stop completely when given an invalid response after entering the side lengths. I've created the following:
a=input('Enter value for side a: ');if a < 0 disp('Not a valid input.')endb=input('Enter value for side b: ');if b < 0 disp('Not a valid input.')endc=input('Enter value for side c: ');if c < 0 disp('Not a valid input.')
Best Answer