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

How do I write a paragraph
Which function is shown in the graph below? Please hurry! y=log 1/6x y=log0.5x y=log1x y=log6x
In your own words, what is natural selection??
Problem #7 Subtract x + 4 from 7x + 1. Problem #8 Subtract 6x -8 from -4x + 5. Problem #9 Subtract -6n + 3 from 4n – 1. Problem #10 Subtract -8n -
I need help with this problem. A store sells 24 cans of soup for $25. How much would it cost you for 7 cans of soup?
Problem #7 Subtract x + 4 from 7x + 1. Problem #8 Subtract 6x -8 from -4x + 5. Problem #9 Subtract -6n + 3 from 4n – 1. Problem #10 Subtract -8n -
what is the midpoint?
The 1996 Summer Olympic Games provided a lasting economic benefit to Georgia due to Question 5 options:an increase in traffic, garbage, and population. the incr
Osman founded what empire?​
how many atoms are there in 7 molecules of H3PO4?