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]
3 years ago
6

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

Computers and Technology
1 answer:
Valentin [98]3 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
In most operating systems what is running application called?
Likurg_2 [28]

Answer:

I believe it is just a task. Since there exists(on windows) the Task Manager application, where you can stop any running <em>task, </em>I think that they are called tasks

Explanation:

5 0
3 years ago
How did Avery and Garth most likely create their
hram777 [196]
Avery used smartart and added shake
6 0
3 years ago
After a webcast is completed there are no files left on your computer.
astra-53 [7]
What are you askinggggggggggg

7 0
3 years ago
2.3.<br> Why is a foundation of particular importance when building and designing<br> structures?
bearhunter [10]

Answer:

A foundation plays three major roles in the construction of a structure. A good and strong foundation keeps the building standing while the forces of nature wreak havoc. Well-built foundations keep the occupants of the building safe during calamities such as earthquake, floods, strong winds etc.

6 0
3 years ago
What is a chalculer.
motikmotik
Did you mean calculator
8 0
3 years ago
Other questions:
  • At what point is an idea protected by copyright?
    7·2 answers
  • fill down feature on a formula and you need to keep a cell reference the same which one will allow you to keep the same cell ref
    15·1 answer
  • What is the advantage of using Mail Merge Wizard when creating a mail merge?
    12·2 answers
  • Which of these benefits can be achieved whensoftware is restructured?
    5·1 answer
  • The default (preset slide layouts are set up in ____ orientation.
    15·1 answer
  • This exspansion slot essentially replaced PCI and AGP slots
    14·1 answer
  • You have a web application hosted in AWS cloud where the application logs are sent to Amazon CloudWatch. Lately, the web applica
    7·1 answer
  • For businesses and organizations under recent compliance laws, data classification standards typically include private, confiden
    12·1 answer
  • It would be at least two decades before some of the technologies he demonstrated saw widespread use, but all of them are used by
    9·1 answer
  • Read the following scenario what type of business letter do you think is required in this situation?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!