I'm new to this forum and figured out that it would be a good place to get some help. Most of what I will be posting will be in regards to homework help...if you dont mind. I'm very very new to programming and would love your help. So, I'm having an issue with a very simple program which simulates a bomb explosion.
here is the problem:
Write a program that will simulate a bomb explosion. Your program should ask the user for a number of seconds to count down. Using this value, print a line that says "Tick" to the user for each second. After your program finishes ticking for the correct number of seconds, the program should end with a "Boom!" An example of what your program may look like is below, where the $ is the cygwin prompt. The user types in the '5' -- this could be any value. [Hint: what part of this problem repeats again and again]
What should I set the timer to? 5
Here is my program:
/* tick tick boom! Thedore Rhoades */
printf("what should I set the timer to?");
scanf ("%i", tick);
for ( tick = 1; tick <= 1; ++tick )
do i want to be using a for statement? I'm very close to solving this!