subject
Mathematics, 28.08.2021 01:00 kimhayleeshook50

It is good programming style to always use a for loop when the number of times to repeat the action is known. The following code uses a while loop that mimics what a for loop should do. Rewrite it using a for loop that accomplishes exactly the same thing. myprod = 1;
i = 1;
while i <= 4
num = input('Enter a number: ');
myprod = myprod ⁎ num;
i = i + 1;
end

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 13:00
Lines p and q intersect. find the value of b. show your work. cite any theorems you use.
Answers: 1
question
Mathematics, 21.06.2019 15:00
1. are the triangles similar and if so why? what is the value of x? show your work.
Answers: 2
question
Mathematics, 21.06.2019 18:20
What is the y-intercept of the line given by the equation
Answers: 2
question
Mathematics, 21.06.2019 18:50
The volume of a cone is 37x3 cubic units and its height is x units. which expression represents the radius of the cone's base, in units? 1 s o 3x o 6x obx 93x2
Answers: 1
You know the right answer?
It is good programming style to always use a for loop when the number of times to repeat the action...
Questions
question
Biology, 19.08.2019 14:30
question
Mathematics, 19.08.2019 14:30
question
Mathematics, 19.08.2019 14:30
Questions on the website: 13722363