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]
2 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]2 years ago
7 0

myprod = 1

num = input("Enter a number: ")

for i in range(1, 5):

myprod *= num

You might be interested in
Find the value of x. Part 1c​
gtnhenbr [62]

Answer:

x=11

Step-by-step explanation:

Please see attached image.

4 0
3 years ago
Read 2 more answers
Can you please help
Free_Kalibri [48]

Answer:

The answer to the question provided is

\frac{9}{5}

Step-by-step explanation:

T

4 0
3 years ago
Find the measure of angle x in the figure below<br>67 61<br>у<br>X<br>67​
kondor19780726 [428]

Answer: y67

Step-by-step explanation:5n − 19 + n + 7 = 144 − 6n

6n − 12 = 144 − 6n

12n = 156

n = 13

m∠z = (144−6n)°

m∠z = (144−6×13)°

m∠z = y67

3 0
3 years ago
Read 2 more answers
Given that g(x)=x-3/x+4 find each of the following.
maks197457 [2]

Given that the function g(x)=x-3/x+4, the evaluation gives:

  1. g(9) = 6/13.
  2. g(3) = 0.
  3. g(-4) = undefined.
  4. g(-18.75) = 1.07.
  5. g(x+h) = x+h-3/x+h+4

<h3>How to evaluate the function?</h3>

In this exercise, you're required to determine the value of the function g at different intervals. Thus, we would substitute the given value into the function and then evaluate as follows:

When g = 9, we have:

g(x)=x-3/x+4

g(9) = 9-3/9+4

g(9) = 6/13.

When g = 3, we have:

g(x)=x-3/x+4

g(3) = 3-3/3+4

g(3) = 0/13.

g(3) = 0.

When g = -4, we have:

g(x)=x-3/x+4

g(-4) = -4-3/-4+4

g(-4) = -1/0.

g(-4) = undefined.

When g = -18.75, we have:

g(x)=x-3/x+4

g(-18.75) = -18.75-3/-18.75+4

g(-18.75) = -15.75/-14.75.

g(-18.75) = 1.07.

When g = x+h, we have:

g(x)=x-3/x+4

g(x+h) = x+h-3/x+h+4

Read more on function here: brainly.com/question/17610972

#SPJ1

8 0
2 years ago
Marking brainliest!!<br><br> What should I put for the second question? I am confused. HELPP
NARA [144]
One could analyze sources that were created by experts. In this case, you should look for a source that shares the same main argument, which is that people should pay for things that they own. People with credentials are credible (for the most part), and can be trusted. If experts have the same ideas and opinions in their respective fields, your thesis can be verified.
5 0
2 years ago
Other questions:
  • David left the park traveling 16 mph. Then 3 hours later, Corey left traveling the same direction at 28 mph. How long until Core
    8·1 answer
  • Evaluate p(7,3)<br> a.24<br> b.35<br> c.210
    7·2 answers
  • Given: f(x) = 8 - 4 x
    8·1 answer
  • Which point represents the square root of 182
    7·1 answer
  • Samantha is trying to determine how she can save money by cutting her electricity bill. She is currently on a standard use plan
    9·1 answer
  • Please help! Will mark you as BRAINLIEST!!!!!
    7·2 answers
  • Find the axis of symmetry and the vertex of the graph f(x)=2x-4x
    12·1 answer
  • The jogging track at Francine’s school is 3/4 mile long. Yesterday Francine completed two laps on the track. If she ran 1/3 of t
    13·1 answer
  • Solve: (8-u)-(5u+1) with steps
    12·1 answer
  • Which shoe size is the mode?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!