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]
2 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]2 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
Explain the concept of an engineering trade-offs and give an example
makvit [3.9K]

ytfjkhm,MNbkvjhmb,kn.l">

k

8 0
3 years ago
Read 2 more answers
Which of the following is an example of a runtime error?
Rina8888 [55]

Answer:

missing quotation marks around a string literal

6 0
2 years ago
Create five circles like the Olympic Rings. fill them with the colors given below
Eva8 [605]

Answer: testing

Explanation:

Testing an answer with multiple attachments

3 0
3 years ago
How do you use VMware Fusion to make a Tip Calculator?
lana66690 [7]
You have to subtract the tax amount by the final amount then multiply the result by the percentage of tip that is based on the service that you received.
4 0
3 years ago
How do I sort a code in alphabetical order that uses this FileReader inFile = new FileReader("MyStudents.txt"); in a binary sear
stiv31 [10]
Try searching it up , you’ll probably find exactly how to do it
7 0
2 years ago
Other questions:
  • Write a function wordcount() that takes the name of a text file as input and prints the number of occurrences of every word in t
    12·1 answer
  • Submit your 300-word essay describing the equipment usedI in a well-equipped studio’s audio department and the training and expe
    8·2 answers
  • How would you print from 1 to 1000
    13·1 answer
  • What are voter purges
    11·1 answer
  • What is an Operating System ??
    7·1 answer
  • Unleashes the ability of each person on their team to improve performance, solve problems, and
    6·2 answers
  • The image below shows an encoding for a black and white pixel image. The first two
    13·1 answer
  • Where is 5G being used and how fast is it?​
    5·2 answers
  • PLEASE ANSWER
    6·1 answer
  • The data source in the document which has the information common to all documents. True or false 
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!