1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
masha68 [24]
3 years ago
14

Write code that prints: Ready! userNum ... 2 1 Blastoff! Your code should contain a for loop. Print a newline after each number

and after each line of text Ex: userNum = 3 outputs: Ready! 3 2 1 Blastoff!
Computers and Technology
1 answer:
ludmilkaskok [199]3 years ago
7 0

Answer:

The program to this can be described as follows:

Program:

#include <iostream> //defining header file

using namespace std;

int main() //defining main method

{

int number,l,value=0; //defining integer variables

cout<<"UserNum = "; //print message

cin>>number; //input value by user-end

cout<<"Ouput: Ready!"<<endl<<number<<endl; //print input value with message

for(l=1;l<number;l++) //loop print value in reverse order

{

value=number-l; //calculate value

cout<<value<<endl; //print value

}

cout<<"Blastoff!"; //print message

return 0;

}

Output:

UserNum = 3

Ouput: Ready!

3

2

1

Blastoff!

Explanation:

Description of the above code:

  • Three integer variable "number, l, and value=0" is defined in this program, in which the number variable takes input from the end and the variable l and value is used in the loop to calculate the value in reverse order.
  • In the for loop is declared, a variable value is defined, which calculates the value in reverse order and uses a print method to print the value.
You might be interested in
Why should one avoid noise in the computer room​
iragen [17]
Is this a joke bc if so why?
5 0
3 years ago
Read 2 more answers
What shows the web address of the page that is currently displayed in the workspace?
babunello [35]

Answer:

In a web browser, the address bar (also location bar or URL bar) is a GUI widget that shows the current URL. The user can type a URL into the bar to navigate to a chosen website.

6 0
3 years ago
Read 2 more answers
The following is part of a log file taken from the machine on the network with the IP address of 192.168.1.106:__________.
Phantasy [73]

Answer:

Port scan targeting 192.168.1.106.

Explanation:

In the following question, there is some part of the question and options is missing.

In the following statement, when a file log is taken from the computer system which has Internet Protocol address is given in the statement and by the further details of the statement in which time and the port destination by examine those details of the Internet Protocol, the following port scan targeting the IP address 192.168.1.106.

3 0
3 years ago
Name 3 coding languages
Pavlova-9 [17]

Answer:

javascript, python, c#

Explanation:

7 0
3 years ago
Read 2 more answers
A device that is connected to the Internet is known as a what?
MrMuchimi
I would say a host or end system
6 0
3 years ago
Read 2 more answers
Other questions:
  • After Intel faced strong shifts in technologies, such as cloud services, social networking, mobile devices, etc., Intel realized
    11·1 answer
  • Write a Java program that calculates and prints the monthly pay check for an employee. The net pay is calculated after taking th
    8·1 answer
  • Which of the following is the most accurate description of what is known as the "digital divide". The digital divide is about ho
    5·2 answers
  • What are entity-relationship diagrams and how are they used? What symbol is used for a relationship? What is an associative enti
    5·1 answer
  • Suppose a host has a 1-MB file that is to be sent to another host. The file takes 1 second of CPU time to compress 50%, or 2 sec
    12·1 answer
  • Community gardens are public gardens where local residents can grow plants in a plot. They are very popular, so there are often
    7·1 answer
  • Can someone help me?
    14·1 answer
  • 4. WiFi and WiMax are used for a high-speed wireless access technology.
    9·1 answer
  • Sample program for Do While loop<br><br> Qbasic
    5·2 answers
  • You have purchased a new LED monitor for your computer. On the back of the monitor, you see the following port (pictured below).
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!