این یکی بدون شرط
کد پیاچپی:
clear
clc
for i=1:20
x(i)=input('Enter the number :>>');
if i>1
if x(i)==x(i-1)
break
end
end
end