daily pastebin goal
29%
SHARE
TWEET

Speaker of The House

a guest Mar 25th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for k = (1:1:1000)
  2. for i = (100:1:999)
  3.    num = num2str(i);
  4.  
  5.    if (num(1) == num(2)) & (num(2) == num(3))
  6.        totalSum = 0;
  7.        for l = (1:1:i)
  8.            totalSum = totalSum + l;
  9.            if totalSum == i
  10.                l
  11.            end
  12.        end
  13.        
  14.    end
  15.    
  16. end
  17. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top