Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Compile and run countdown.c. It is supposed to print the integers 10 down through 1 on separate lines and then print blastoff. What does it
Compile and run countdown.c. It is supposed to print the integers 10 down through 1 on separate lines and then print "blastoff". What does it actually print? Fix it so that it does the right thing. Add comments to the code to document the program properly.
/* A program to count from 10 down to 1, one per line and print "blastoff" */
main()
{
count = 10;
while( count >= 0)
{
printf("%d ", count);
}
printf("BLASTOFF! ");
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started