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
pashok25 [27]
4 years ago
6

How do you get a code in C to count down from 5??

Computers and Technology
1 answer:
Valentin [98]4 years ago
5 0

Answer:

This is what the code should do:

“Lift off in T minus

5

4

3

2

1

Blast-off!”

When I run it, it just keeps printing ''Sum = 5'' forever.

Explanation:

Code:

int main(void) {

int sum = 5;  

int i;      

printf("Lift off in T minus\n");

for (i = 0; i < 5; i=i+i) {

   sum = sum - i;  

   printf("sum = %d\n",sum);  

}  

printf("Blast-off",sum);  

return 0;

You might be interested in
What is the most effective way to demonstrate being prepared for an interview?
Arte-miy333 [17]

To prepare for an interview, find out as much as you can beforehand. Call the person who scheduled your interview and ask:

<span>Who will you be talking to? Will you meet the manager you'd work for, or will you just talk to HR? What are the interviewer's expectations?<span>What's the dress code? Dress better than suggested. Most times, it's best to wear a professional suit. You'd be amazed how many candidates show up looking like they're going to class, not presenting a professional demeanor.</span>Get directions to the office. Plan to leave early. Keep a phone number to call if you get stuck on the bus or in traffic. If you arrive late and stressed, the interview will not go well.If you don't have a detailed job description, ask for one.</span>

That's a five-minute phone call.

3 0
3 years ago
What is the name of the option in most presentation applications with which you can modify slide elements?
olga55 [171]

Answer:

Answer to both the question is View Master.

Explanation:

Slide Master View is an element in PowerPoint that enables one to bring modification in slides and slide layouts in the presentation applications. From this option, one is able to edit the slide master. By modifying the slide master, every slide in the presentation is affected. Using this feature, one can also modify single slide layouts.

To select Slide Master command, go to View then select the Slide Master Command, and the Slide Master view will appear on the screen.

Therefore, View Master is the correct answer.

3 0
3 years ago
Read 2 more answers
Give an explanation of one network connection (it will every helpful​
charle [14.2K]

Answer:

WiFi, Ethernet, Broadband, Dial-up. Any of those.

Explanation:

Network connections are all different. Those listed are some of the many examples of network connections.

7 0
3 years ago
Where is NumPy used?
Svetradugi [14.3K]

Explanation:

The ndarray (NumPy Array) is a multidimensional array used to store values of same datatype. These arrays are indexed just like Sequences, starts with zero.

7 0
4 years ago
Read 2 more answers
HELLO!!!! For instance, will we get an error if we put a space after the word “print” and before the opening parenthesis in pyth
IceJOKER [234]

In python, spaces in the sense you're talking about, dont matter. For instance,

print ( "hello") will run the same as print("hello")

But, you cannot put a space before the print statement. That's called indenting. You are only supposed to indent code that is inside loops, if-elif-else statements, and functions.

7 0
3 years ago
Other questions:
  • Abigail is interested in connecting her tablet that usually connects to a wireless network, to her personal computer that usuall
    11·2 answers
  • In a student​ database, a row that describes the top​ student, including his or her​ lastname, firstname, and​ studentnumber, is
    9·1 answer
  • A spreadsheet has some values entered: Cell A1 contains 10, cell A2 contains 14, A3 contains 7. You enter in cell A4 the followi
    8·1 answer
  • Which of the following is true of Chinese Opera: Two opera centers emerged Beijing and Yangzhou 300-400 forms of opera arose in
    10·1 answer
  • Select the correct answer from each drop-down menu.
    8·1 answer
  • You can minimize the Ribbon with a command contained on the _____.
    7·1 answer
  • What is the definition of the word uproot?
    15·1 answer
  • What is keylogging attack?
    13·2 answers
  • Describe how you will lunch a web browser using the start menu​
    6·2 answers
  • In which of the following movies, multimedia's special effect is used ? *
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!