%Find the smallest even integer that is
% divisible by 13 and whose
% square root is greater than 86
clc; clear; x=15; a=rem(x,26); b=sqrt(x); while a==0 && b>86 if a==0 && b>86 fprintf('The required number is %d\n',x); break else x=x+1; end end
MATLAB: Logical operators with while loop
1MATLAB
Best Answer