shfsfkjsfknsj8559 shfsfkjsfknsj8559
  • 07-10-2017
  • Computers and Technology
contestada

Write c++ code that prints: usernum ... 2 1 blastoff! your code should contain a for loop. print a newline after each number and after blastoff!.ex: usernum = 3 outputs: 3 2 1 blastoff!

Respuesta :

recipients
recipients recipients
  • 07-10-2017
#include <iostream>
int main() { int usernum = 3;
for(int i = usernum; i >= 1; i--) { std::cout << i << "\n"; } std::cout << "blastoff!\n";
return 0;}
Works fine my dude:
./randombrainly 321blastoff!
Answer Link

Otras preguntas

* Urgent Bet no one knows this *
How many moles of water are produced when 3.45 moles of KMnO4 react
Plz help I just need this question
What is 3.00 - 2.50 explain your work
please help with this
Please help me on this. I'll mark the Brainliest on whoever gets it right. Write 3 complete sentences in Spanish where you would need to use the "personal a."
The base of a rectangle is x. Its height is 6x + 25. Its area is 25. Write an equation that represents the area of the rectangle. (HINT start with the formula f
Write each polynomial in standard form. Identify the leading coefficient. 4x + 2x5 – 6x3 + 2
A drawbridge will sometimes open up to let boats and other water traffic pass through. As it opens, the surface of the drawbridge raises above the level of the
what is the length of VS?