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

Los estudiantes malos siempre llegan __r_e a la clase.
A person jog eight complete laps around a 400 m track in a total time of 14.9 min. Calculate the average speed in m/s and average velocity in m/s?
8x+y=17 i have to write this in slope intercept form
During the late 19th century, social Darwinists beleieved that?
what is the function of  golgi apparatus?
how might the cells of the membrane pore compare to the size of the starch molecules?
Which of the following is an example of a model? a. The solar system b. A globe c. A planet d. A padlock
Need help please?! Write an inequality and solve. Travis visits the local supermarket to buy a large pizza and as many 6-packs of soda as he can afford. The lar
How do archaeologist help to uncover secrets
how do u write 2.51 in word form and expanded form?