I need to ask the user for the number of windows in a house give the sizes of all the windows. To do this, I am trying to use loops to determine how many times to ask for a window's size and add the size into an array. My problem is that when the code is ran, x = , and doesn't contain the elements I inputed.
Here's me code:
num_windows = input('How many windows?: ');
x = ;
for k = 1:num_windows
window_size = input('Window size?: ');
x = x + window_size;