He should view the Outline THEN the Layout and finally preview in web browser.
I'd say Davis was trying to increase persuasive power. Given that he saw that nobody was really his friend because he was shy and quiet, he tried to persuade people to like him by going to the game and hanging out with people.
Answer:
numbers = 1:1:100;
for num=numbers
remainder3 = rem(num,3);
remainder5 = rem(num,5);
if remainder3==0
disp("Yee")
else
if remainder3 == 0 && remainder5 == 0
disp ("Yee-Haw")
else
if remainder5==0
disp("Haw")
else
disp("Not a multiple of 5 or 4")
end
end
end
end
Explanation:
- Initialize the numbers variable from 1 to 100.
- Loop through the all the numbers and find their remainders.
- Check if a number is multiple of 5, 3 or both and display the message accordingly.