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
mash [69]
3 years ago
13

Write a program that will ask the user for three different numerical values. The program should then decide whether the values a

re equally spaced. C++
Computers and Technology
1 answer:
tino4ka555 [31]3 years ago
8 0

Answer:

See the code in the Eplanation

Explanation:

// Online C++ compiler to run C++ program online

#include <iostream>

using namespace std;

int main() {

  int firstNumber;

  int secondNumber;

  int thirdNumber;

 

 

cout<< "Enter the firstNumber: ";

cin >> firstNumber;

cout << "Enter the secondNumer: ";

cin >> secondNumber;

cout << "Enter the thirdNumber: ";

cin >> thirdNumber;

int upperbound= abs(firstNumber-secondNumber);

int lowerbound= abs(secondNumber-thirdNumber);

if (lowerbound==upperbound){

cout << "The Three Numbers are Equally spaced";

   

}

  else{

      cout << "The Three Numbers are NOT Equally spaced";

}

}

You might be interested in
What does the following if statement do?<br><br> if (num1 == Math.abs(num1))
Gennadij [26K]

This statement checks if num1 is equal to the absolute value of num1

For instance,

num1 = 4 and the absolute value of num1 = 4. This would run the code inside the if statement but if num1 = -1 the absolute value of num1 = 1 and the if stamtent would be skipped because -1 does not equal 1

6 0
3 years ago
After you have located a program name from the Start menu, in order to create a shortcut on the desktop.
aniked [119]

Answer: wut am I suppose to do

Explanation: thx for the free points :)

5 0
3 years ago
Which Windows feature allows secure printing over the Internet?​
ludmilkaskok [199]

Answer:

You need to install Windows 7 over an existing version of Windows.

Explanation:

Brainiest??

3 0
3 years ago
When using a spreadsheet, sum in the expression =sum(b10:b16), is called a(n) ________?
Marianna [84]
It is called a function.
4 0
3 years ago
Think about your favorite technology item - phone, game, smartTV, etc. - Write about how your favorite technology item has impac
grandymaker [24]

Answer:

that is about you you put what are the good and the bads of nechnoilogy

4 0
3 years ago
Other questions:
  • Which of the following are common navigation elements? (Choose all that apply.)
    5·1 answer
  • What is the first document that colleges review when making admissions decisions
    10·2 answers
  • What is a good technological design?
    13·1 answer
  • In the ADT graph the methid addVertex has efficiency
    15·1 answer
  • How do myths impact today’s society.(A
    14·2 answers
  • 3.4.6 colorful bracelet ?
    5·1 answer
  • What woman ran for president on the National Equal Rights Party, receiving 4,149 votes in 6 states in 1884?
    5·1 answer
  • What does input allow a computer to do
    14·1 answer
  • Why does my wifi keep disconnecting and reconnecting?
    9·1 answer
  • ___1. my1st JavaProgram<br> A. valid <br> B. invalid
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!