disp('Please vote for your candidates'); a=1; b=2; c=3; d=4;
for y=1:5
x=input('your candidates= ')
end
w = sum(a) x = sum(b) y = sum(c) z = sum(d)
please help me how to produce the total of selected input for loop
x=input('your candidates= ')
w = sum(a) x = sum(b) y = sum(c) z = sum(d)
Best Answer