/*********************************************************** guess3.ch Introduction to Ch This program is a variation of IP_Program6.c. The only change that has been made is that the printf statement is included in the while loop. This will cause the program to print out the countdown. As you may have noticed, the previous program only printed out "Blastoff!" without a countdown. ************************************************************ Copyright 2014 SoftIntegration Inc. http://www.softintegration.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ***********************************************************/ // initialize variable int number; // ask user to enter a number to count down from 1-50 printf("enter a number between 1 and 50: "); scanf("%d", &number); // while the variable 'number' is greater than or equal to zero // run the instructions in the while loop while (number >=0) { printf("%d\n", number); number = number - 1; printf("Blastoff!\n"); }