1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
horsena [70]
3 years ago
8

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
Mathematics
1 answer:
Paraphin [41]3 years ago
7 0

myprod = 1

num = input("Enter a number: ")

for i in range(1, 5):

myprod *= num

You might be interested in
Plot the image of point D under a dilation about the origin (0,0) with the scale factor of 2.
loris [4]
It’s -3,-2 hope thiisssss helpsssss
3 0
3 years ago
Read 2 more answers
HELP! ASAP! Am I correct!?!?
LenKa [72]
It isn't because, it isn't consistent, and it doesn't follow any of the other answer choices. :)

3 0
3 years ago
Find the value of x to the nearest tenth.<br>​
Oksi-84 [34.3K]

Ok i hope this helps and if it does pls give me brainliest!

So the longest line is 8 and makes a 90 degree angle with another smaller line which is labled 3.6. X is longer than 3.6 ( only by a little bit) But it looks like its half of the longest line (8). So i think the answer would be X equals 4. But i was thinking about it more i relized that you would prob just divide 8 by 3.6 which would be 2.22222 .... And that rounded tot he nearest 10th would be 2.2.

4 0
3 years ago
B. What number is equal to 280 tenths + 19 thousandths?<br><br> HELP!!
Kaylis [27]

The number that equals 280 tenths + 19 thousandths is 28.019

<h3>How to determine the number?</h3>

The statement is given as:

280 tenths + 19 thousandths

Rewrite the terms of the expression as fractions

So, we have

280/10 + 19/1000

Evaluate the quotients

28.0 + 0.019

Add both numbers

28.019

Hence, the number that equals 280 tenths + 19 thousandths is 28.019

Read more about expressions at:

brainly.com/question/723406

#SPJ1

3 0
1 year ago
tom orders a pizza for dinner. it is cut in 12 slices. if tom ate 5/6 of the pizza, he ate 5 copies of 1/6 of the pizza. how man
goldenfox [79]

Answer:

10/12 of the pizza

Step-by-step explanation:

5 0
3 years ago
Other questions:
  • Which set of side lengths is a Pythagorean triple? 2, 3, 13 5, 7, 12 10, 24, 29 11, 60, 61
    12·2 answers
  • Jaime is 9 years old today. Assume that on every one of his birthdays since
    5·1 answer
  • The number of cars sold by 20 salespeople in one week are recorded in the chart below
    15·1 answer
  • Simplify the expression -8+3
    15·2 answers
  • I need help with this probability question! Ive been stuck between two answers...
    10·2 answers
  • Someone can help me in this questions
    12·1 answer
  • I really need help can you help me plsssss
    9·1 answer
  • What operation is being done to the variable in the equation -5m = -40?
    7·1 answer
  • Pls help will give brainliest
    11·1 answer
  • There are 138 paperclips in the jar. Ashley adds 157 more paperclips to the jar. Estimate how many paperclips are now in the jar
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!