clc, clear all, close all
a=150;
while (100<a) && (1<a)
a=input('Please type a number between 1 and 100: ');
if 100>=a && a>50 disp('Your number is larger than 50') elseif a>100 disp('Your number is too big, please try again') elseif 1>a disp('Your number is too small, please try again') elseif 50>a>=1 disp('Your number is smaller than 50') elseif a==50 disp('Your number is 50') endend
Best Answer