Hi, I am quite new to C++ programming and this is my first thread, for an assignment I must code a program to count off 10 9 8 7.....1 blast off, using a looping a structure, I was wondering if it was possible to code this without using line breaks. As of now my program runs in 1 line, 10.......1blast off is in one single line and I need it to count off 10-1 and blast off on all separate lines. Also what loop structure would you recommend to use, help is much appreciated, I do not want someone to code this for me because I wont learn a thing that way. Thanks in advanced.
I need each number to be on its own line, I am afraid if i just endl; after each statement I will not be doing the correct assignment (I already did it this way and thought that it was too easy)
"Use a looping structure(for,dowhile,while)" are my requirements for the program. I assume I am supposed to use all 3 intertwined in the program.
I will upload code momentarily to show you how it currently looks.
Is your program actually suppose to count down? Or just display that 10...9.....1 string. It seems a little silly if it just displays that string then ends.
Sorry had a problem with a storm last night lost power, no I am not just running that string, I have it properly coded now and it shows 10-0 on separate lines as i took the advice from this thread and used breaks. Thanks to all who helped