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
Temka [501]
3 years ago
9

If you want a user to enter exactly 20 values, which loop would be the best to use?

Computers and Technology
1 answer:
Hitman42 [59]3 years ago
4 0

Answer: For loop

Explanation:

Using the for loop we can get the exact number of values/outcomes we require.

For example:    printf(enter 20 numbers");

                               for(int i=0; i<20;i++)

                               {

                                       scanf("%d", &number);

                                }

So, this is an implementation of for loop in C. Using it we can enter exact 20 numbers not less or more than that.

Therefore, for loop is the answer.

You might be interested in
If a laptop is getting no power while plugged in, which hardware part often needs to be replaced?
Eva8 [605]

Answer:

power supply is most likely faulty

3 0
3 years ago
Microsoft ____________________ is a complex, full-featured firewall that includes stateful packet filtering as well as proxy ser
Lesechka [4]

Answer:

Internet Security & Acceleration Server (ISA)

Explanation:

<h2><u>Fill in the blanks </u></h2>

Microsoft <u>Internet Security & Acceleration Server (ISA)</u> is a complex, full-featured firewall that includes stateful packet filtering as well as proxy services, NAT, and intrusion detection.

4 0
3 years ago
Tracking a basketball's backspin with an internal sensor can...
valkas [14]
Help a player improve one part of this shooting technique
5 0
3 years ago
Suppose you find a magic $1.00 coin. Its magic power is as follows: as each day passes, you get an additional dollar plus half o
AfilCa [17]

Answer:

See explaination

Explanation:

public class QuickRich {

static void getRichQuick() {

double amount = 1;

int day = 1;

System.out.println("Day 1: $1");

while (amount < 1000000) {

day++;

if(amount + 1 + (amount/2) < 1000000)

System.out.printf("Day %d: $%.2f + ($1 + %.2f) = $%.2f\n", day, amount, amount/2, amount+(amount/2)+1);

else

System.out.printf("Day %d: $%.2f + ($1 + %.2f) >= $1000000\n", day, amount, amount/2);

amount += (1 + (amount/2));

}

}

public static void main(String[] args) {

getRichQuick();

}

}

7 0
4 years ago
Which is a basic job requirement for a career in corrections services?
Diano4ka-milaya [45]

You must have a high school diploma

7 0
3 years ago
Other questions:
  • To create a default value for a parameter in the parameter list of a function, you code a/an ________________ sign after the par
    5·1 answer
  • We can harden a host by: a. Limiting physical access to it b. Turning off unnecessary services c. Installing patches d. All of t
    8·1 answer
  • What should a system administrator use to disable access to a custom application for a group of users?
    5·1 answer
  • What information should the subtitles in the clips of your video per folio provide?
    14·1 answer
  • Does Congress have a role in determining FAA regulations? If so, what is it?
    11·1 answer
  • One concern some users have about storing data or accessing applications in the cloud is .
    10·1 answer
  • 1. Harold Worden, then 56-years-old, stole Kodak property
    9·1 answer
  • Assume a large shared LLC that is tiled and distributed on the chip. Assume that the OS page size is 16KB. The entire LLC has a
    8·1 answer
  • patty works at Mcdonald's as a chef. it is her job to make hamburgers as each order arrives on her computer screen. one day patt
    11·2 answers
  • A eclipse occurs at a full moon when the moon passes between earth and the sun
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!