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!
#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!