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
ASHA 777 [7]
3 years ago
15

c programming Write code that prints: Ready! countNum ... 2 1 Go! Your code should contain a for loop. Print a newline after eac

h number and after each line of text Ex: countNum = 3 outputs: Ready! 3 2 1 Go! 1 2 3 4 5 6 7 8 9 10 11 12 13 #include int main(void) { int countNum; int i; countNum = 3; /* Your solution goes here */ return 0; } 1 2 3 4 5 Check Next
Computers and Technology
1 answer:
olga_2 [115]3 years ago
6 0

Answer:see explanation

Explanation:

Hello, from your question I see that you need a program which based on countNum's value prints ready then all the numbers to 1 and finally go!, I'd appreciate if you provided information about the numbers after the example you gave as I do not know if they are to be printed too.

The solution I provide includes the countdown to 1 printing newline after each number and text. Try it out!

#include <stdio.h>

int main(void)

{

   int countNum;

   int i;

   countNum = 22;

   for ( i = countNum; i > 0; i--) {

       if (i == countNum){

           printf("Ready!\n");

       }

       printf("%d\n",i);

   }

   printf("Go!\n");

   return 0;

}

You might be interested in
Upon running the ifconfig command, the IP address is listed along with the subnet mask in dotted decimal notation listed as 255.
vredina [299]

Answer:

The answer is "Option c"

Explanation:

In the given question only option c is correct because "/27" is the IP "255.255.255.224" is the same as "/27" in the terminology in CIDR, in which it uses the compact IP address as well as corresponding prefix expression and it terminology consists of an IP with a slash ('/') or a decimal number. Its count of 1-bit proceeding to the mask traditionally referred to it as the network mask.

5 0
3 years ago
10. What may help drivers conserve gasoline?
ki77a [65]

Answer: C. Slowing down gradually

Explanation:

A and B suck up the gas immediately since you are using much more of it. When you brake abruptly, you are not only wasting gas, but you are also damaging your tires. Therefore, the most appropriate answer is C.

I hope this helps!! Pls mark brainliest :)

7 0
2 years ago
Read 2 more answers
The ________ utility automatically creates duplicates of your libraries, desktops, contacts, and favorites to another storage lo
olchik [2.2K]

I guess the best option is B.

The file history utility automatically creates duplicates of your libraries, desktops, contacts, and favorites to another storage location.


7 0
3 years ago
Which SQL keyword is used to change the values of an entire column??
belka [17]
SET is used to change the value of an entire column in a db. 
4 0
3 years ago
In Microsoft Word you can access the _______ command from the "Mini toolbar'?
miskamm [114]
Uderline that's the answer


3 0
3 years ago
Read 2 more answers
Other questions:
  • Now that the classList Array has been implemented, we need to create methods to access the list items.
    5·1 answer
  • Which option re-scales a worksheet vertically?
    10·1 answer
  • At what depth does an employer need to use a protection system to ensure the safety of workers in a trench or excavation?
    8·2 answers
  • You are system administrator with hundreds of host workstations to manage and maintain. You need to enable hosts on your network
    14·1 answer
  • A database planner names a field “Organic ingredients_3”. Why would this name Create possible problems in programming?
    8·2 answers
  • What are some ways you can work with templates? Check all that apply.
    9·2 answers
  • How will you apply the different wiring devices according to its main purposes and functions?
    15·1 answer
  • What is the full form of ALU​
    11·2 answers
  • C++ <br> see attached file for quesion
    5·1 answer
  • What is the error in the following pseudocode?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!