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
KiRa [710]
4 years ago
11

Write a program that takes in an integer in the range 20-98 as input. The output is a countdown starting from the integer, and s

topping when both output digits are identical.
Computers and Technology
1 answer:
alexira [117]4 years ago
7 0

Answer:

Following are the program in c++ langauge  

#include<iostream>

using namespace std; // namespace

int main() // main function()

  {

      int n1; // variable declaration

   cout<<"Enter the number between 20 and 98 :";

   cin>>n1;// Read the value by user

    cout<<" The output is given :93 92 90 89 88

    Explanation:

    Read the value by user in the n1 variable of int type"  ;

     

      if(n1 < 20 || n1 > 98) // checking the condition

      {

        cout<<" input must be between the 20-98";

      }

      else

      {          

          cout<<n1; // display the value of n1

            while(n1 % 11 != 0) // itearting over the loop

          {

              n1 = n1 - 1; // decrement the value of n1 by 1

              cout<<" "<< n1; // didplay the n1

          }

      }

  }

Output:

Enter the number between 20 and 98 :93

The output is given :93 92 90 89 88

Explanation:

Following are the description of the program

  • Read the value by user in the "n1" variable of int type.
  • In the if block checking the range of input .
  • If the user puts the correct range then control goes to the else block and calculating the countdown.
You might be interested in
What is an effective way to record change management? (5 points)
yanalaym [24]

Answer:

Detailed Notes

Explanation:

I took the 2.04 quiz

3 0
4 years ago
Why should cloud computing not be a set of silos? Provide real or made up examples of why incompatible solutions will fail in IT
lesya [120]
2 is tha answer to Why should cloud computing not be a set of silos? Provide real or made up examples of why incompatible solutions will fail in IT.?
8 0
3 years ago
Which of the following statements about websites is NOT true?
Inga [223]
The correct answer choice would be letter B.

I hope that this helps !
6 0
4 years ago
Read 2 more answers
What kind of software would you use to view and troubleshoot protocol-specific problems such as TCP retries caused by missed ack
sveticcg [70]

Answer:

The kind of software to use is a protocol analyser.

Explanation:

The Protocol analyser, which could either be a hardware or a software is a tool that is used for capturing and analysing signals and also interpreting network traffic over a communication channel or between two or more connected computer systems

Protocol analysers can be used to find out location of problems on Local Area Network by examining flow of traffic.

7 0
3 years ago
What is the use of a router​
Solnce55 [7]

Answer:

Hope This Helps

A router is a networking device that forwards data packets between computer networks. Routers perform the traffic directing functions on the Internet. Data sent through the internet, such as a web page or email, is in the form of data packets. A packet is typically forwarded from one router to another router through the networks that constitute an internetwork until it reaches its destination node.

Explanation:

6 0
4 years ago
Other questions:
  • What is one example of technology influencing health​
    9·1 answer
  • True or false. Every word has only one correct spelling and pronunciation.
    6·1 answer
  • What information on social networking sites could be used to discriminate against a potential employee
    9·1 answer
  • Many mobile devices can perform Internet searches and other tasks via
    8·1 answer
  • When a chart is selected, numerous customization options can be found on which Chart Tools tabs?
    11·2 answers
  • Ryan is looking to buy a new HDTV set. He knows from friends that LCD set screens reflect less light than plasma set screens, bu
    10·1 answer
  • Check My Work Sherri is considering replacing a processor on her laptop. The laptop is running slower than she would like. What
    9·1 answer
  • Identify some advantages of using Excel over lists, paper files, or simple word documents? Describe some disadvantages of using
    15·1 answer
  • What happens if a computer lags too much?
    14·2 answers
  • compared to other data structures, this dbms structure is more flexible and stores data as well as instructions to manipulate th
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!