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
B) Use an Excel function to find: Note: No need to use Excel TABLES to answer these questions! 6. The average viewer rating of a
nydimaria [60]

Answer:

Use the average function for viewer ratings

Use the min function for the earliest airing year

Explanation:

The average function gives the minimum value in a set of data

The min function gives the lowest value in a set of data

4 0
3 years ago
Show the printout of the following code.
alexira [117]

Answer:

E. 7.0

Explanation:

the 7 of the out of the older and make a shame of waves and force of trying

7 0
3 years ago
A Trojan horse:
Elis [28]

Answer:

The answer is "option D"

Explanation:

Trojan horse is a software, that is installed on a system and appears benign, but in actual it is the addition of malicious which unexpected modifications in config files and unusual activity even when the computer is idle are strong signs that a Trojan exists on a system. and other options are not correct that can be described as follows:

  • In option A, It is a malware that is also known as Trojan.
  • In option B, It is malware, not a virus but the malware includes viruses.
  • In option C, It doesn't install spyware on the user's computer.
  • In option E, It doesn't use for enterprise networks to penetrate.
4 0
3 years ago
Cloud-based services can open doors to leveraging Artificial Intelligence (AI) without dramatically increasing risk. Which clien
vladimir1956 [14]

Answer:

Explanation:

The clients that would be best suited for this opportunity would be small business or business' that do not have the hardware/space resources necessary to create the computing power that they need. Instead, they can simply pay for these cloud-based services which provide all of the necessary computing/hardware power and resources necessary so that the company can easily fulfill all of their tasks without any problems. Bigger companies can easily pay for and implement their own hardware to solve their problems which may benefit them even more in the long-term.

7 0
3 years ago
Write three guidelines to help you keep track of your behavior as you use different apps with
Gala2k [10]

Answer:

A basic guideline plan to help me track my behavior consist of the following:

How much time do I use each element?

Have I experienced anxiety after using them?

Have I experienced anxiety while using them?

Have I changed my day to day routine by using them?

Explanation:

The reasons to back my answer are the following. First of all, dependency can be measured in time spent and anxiety developed after the use of the element. Thus, we need to explore if the source of media has originated anxiety while using it or after using t to spot if we are suffering an addictive pattern. Also, generally addictive elements create anxiety while using it and it increases after stop using them. Therefore, if we find that we have experienced both types of anxiety we are in an addictive cycle.

4 0
3 years ago
Other questions:
  • What are parts of the prewriting process
    13·1 answer
  • Identify ways you can manage a project using project management software
    14·1 answer
  • If your accelerator is stuck while driving, first ___.
    14·1 answer
  • What message do you want to share with a wide audience
    7·1 answer
  • Create a new program called Time.java. From now on, we won’t remind you to start with a small, working program, but you should.
    13·1 answer
  • is a shell program in Windows that holds individual utilities called snap-ins, designed for administration and troubleshooting.
    11·1 answer
  • A network technician is designing a network for a small company. The network technician needs to implement an email server and w
    7·1 answer
  • Use the drop-down menus to answer questions about the options in the Window group. Which command allows a user to view presentat
    6·2 answers
  • Write a method named countInRange that accepts three parameters: an ArrayList of integers, a minimum and maximum integer, and re
    6·1 answer
  • What do you notice about the cinematography
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!