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
Setler [38]
3 years ago
13

Write a while loop that prints user_num divided by 2 until user_num is less than 1. sample output for the given program:

Mathematics
2 answers:
Luden [163]3 years ago
7 0

Step-by-step explanation:

Since you did not specify what language to use, I am going to us R to write the while loop. With that said, please view the image I have posted.



natulia [17]3 years ago
3 0

Answer:

while(user_num >= 1.0){

printf("%.2f", user_num);

user_num = user_num/2;

}

Step-by-step explanation:

I am going to write a C code for this.

The first step is read the value of user_num.

After that, inside the while loop, you print the value then divide user_num by 2.

In the print, %.2f prints the float to two decimal cases.

So

float user_num.

scanf("%f\n", user_num);

while(user_num >= 1.0){

printf("%.2f", user_num);

user_num = user_num/2;

}

You might be interested in
Select the equation that represents the function given in the table below.
masya89 [10]

Answer:

Step-by-step explanation:

The answer is D

y=1/2x-8

Take x=-6

Y=1/2(-6)-8=-11

Take X=-2

Y=1/2(-2)-8=-9

Take X=4

Y=1/2(4)-8=-6

Take X=8

Y=1/2(8)-8=-4

7 0
3 years ago
What are the odds of picking a "g" in the word Georgia?
Veseljchak [2.6K]
The probability of any particular event occurring is the number of desired outcomes divided by the total number of outcomes. In this case, the total number of letters you can pick is 7 (g, e, o, r, g, i, a), and the number of times "g" occurs is 2, so the odds of picking a "g" are 2/7.
8 0
3 years ago
Read 2 more answers
Need this real quick, please.
Anna35 [415]

Answer:

(0, 3/2)

Step-by-step explanation:

the slope is 0.

the y intercept is 3/2.

6 0
3 years ago
Read 2 more answers
Chiara bought 3 yards of fabric for $8.00.She realized she needs 2 extra yards. How much will the extra fabric cost?
Arada [10]
Assuming she buys every yard of fabric for the same price, we divide $8 by 3 to find the price of 1 yard of fabric. Then we multiply 8/3 by 2 to find the cost of 2 yards of fabric. 

$8/3 *2 = $16/3 =$ 5 1/3 = $5.3333
4 0
3 years ago
What percent of 56 is 75
Assoli18 [71]
75 is what %of 56 is 133.9285714286%
75/56• 100%= 133.9285714286%
8 0
3 years ago
Other questions:
  • 9+10=
    6·2 answers
  • The double number line below shows the approximate number of kilograms in a certain number of pounds
    13·1 answer
  • Is the number of calories you have burned since midnight at any time during the say a function\?
    14·1 answer
  • Please help really fast
    10·1 answer
  • For what values of x is the value of the function f(x)=x² +3x+2 equal to zero?
    15·2 answers
  • Find the area of the circle. Round your answer to the nearest tenth. The circle has a radius of 9
    11·1 answer
  • Answer correctly and i’ll mark brainliest, pls help
    13·2 answers
  • On a map of City Hall Park, 1 fourth inch represents 3 yards. The actual length of the park is 60 yards. What is the length in i
    7·1 answer
  • Plz help! Giving a lot of points! :)
    9·2 answers
  • The value of a rectangle is 128 cubic yards. The base of the prism has an area of 8 square yards.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!