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
What features of a credit card do you need to research when considering a credit card?
viktelen [127]
The answer is the charges , annual fee , loyalty points or rewards , cash back.
5 0
4 years ago
Read 2 more answers
Intranets are typically set up behind a firewall. <br> a. True <br> b. False
slamgirl [31]
The answer is a. True. Hope this helps :)

~PutarPotato
4 0
3 years ago
What is the purpose of an internet protocol address (ip address)?
Karolina [17]
To provide the network number and node number of a machine. Not too useful without a network mask to separate them.
5 0
3 years ago
Twenty years ago, most games were sold in brick and mortar stores. How did independent game developers get their games into thes
Svetlanka [38]

Answer: by working with a publisher who would help the developer bring their games to stores and then market them and get as much exposure and traction as possible

Explanation:

Publishers were and are still important in the gaming world even if they have now increasingly moved online. Publishers have a reputation and with this reputation comes access to a wide array of services that enable them to sell games.

This was the same when most stores were brick and mortar. One would sign a deal with a publisher who through their expertise would help the game get to market and give it publicity so that it can be sold.

6 0
3 years ago
Before entering a road from an alley or driveway, you must:Flash your high beam headlights 
JulsSmile [24]

Stop before reaching the sidewalk. Hope this helps

3 0
3 years ago
Other questions:
  • You can increase your efficiency by using your e-mail program's spell checker because it eliminates the need for you to proofrea
    11·1 answer
  • The method header of the equals() method within the string class is ____.
    13·1 answer
  • What are folders within folders called​
    8·2 answers
  • If the old and new systems are operated side by side until the new system has proven itself, this type of system conversion plan
    11·1 answer
  • 2.20 Write an expression involving a three-letter string s that evaluates to a string whose characters are the characters of s i
    6·1 answer
  • Which statement about technology before the invention of the printing press is true?
    8·1 answer
  • Write method reverseString, which takes a string str and returns a new string with the characters in str in reverse order. For e
    8·1 answer
  • Comments should Your answer: rephrase the code it explains in English be insightful and explain what the instruction's intention
    15·1 answer
  • 5. Which one of these can connect directly to the internet?
    9·2 answers
  • Which Annotation tool provides the ability to convert the mouse icon when giving a presentation to better focus the
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!