Mathematics
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

answer
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 16:30, amir6658
Arestaurant gives out a scratch-off card to every customer. the probability that a customer will win a prize from a scratch-off card is 25%. design and conduct a simulation using random numbers to find the experimental probability that a customer will need more than 3 cards in order to win a prize. justify the model for your simulation, and conduct at least 10 trials.
Answers: 1
image
Mathematics, 21.06.2019 17:00, deniseelyons15
Yosef can eat 21 jamuns while rose can eat just 15 . complete the blank. yosef can eat % more jamuns than rose.
Answers: 1
image
Mathematics, 21.06.2019 18:00, cheerthi16
Sandy is ordering bread rolls for her party, she wants 3/5 of the rolls to be whole wheat. what other factions can represent part of the rolls that will be whole wheat? shade the models to show your work.
Answers: 1
image
Mathematics, 21.06.2019 19:10, gurlnerd
1jessica's home town is a mid-sized city experiencing a decline in population. the following graph models the estimated population if the decline continues at the same rate. select the most appropriate unit for the measure of time that the graph represents. a. years b. hours c. days d. weeks
Answers: 2
Do you know the correct answer?
It is good programming style to always use a for loop when the number of times to repeat the action...

Questions in other subjects:

Konu
English, 03.08.2019 06:30
Konu
Mathematics, 03.08.2019 06:30
Konu
Health, 03.08.2019 06:30
Konu
Mathematics, 03.08.2019 06:30