clc;clear;close all;
limit=210;
k = 0;
sum = 0;
while sum <= limit
k=k+1;
sum = sum + k;
end
sum
n=k
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!