clear, clc, close all
%Practicing if statements, for, and while loops
% == , >=, <=, ~=, <, >

word = "Hello";
if word == 'hello'
    disp('true')
elseif word ~= 'hello'
    disp('false')
else
    disp("What?")
end
x = [1:20];
for i = x
    matrix(i) = x(i);
    y(i,i) = x(i)^2;
end
matrix';
y'
(x.^2)'

i = 1;
while i <= 20
    mat2(i) = i;
    i = i + 1;
    if i > 20
        break
    end
end
mat2'