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
Jet001 [13]
3 years ago
14

Write a programme with C++ language wich print the biggest number in between three numbers , whith INT

Computers and Technology
1 answer:
belka [17]3 years ago
5 0
Your question is a bit misleading, I'm having trouble understanding what you mean with "in between". I'm assuming you want the biggest number from an input of 3 numbers. You did not specify what should happen if more than one number is the biggest (ie., they're equal).

A very naive implementation might be:

void PrintBiggest(int a, int b, int c)
{
   if ((a >= b) && (a >= c)) cout << a;
   else if ((b >= a) && (b >= c)) cout << b;
   else if ((c >= a) && (c >= b)) cout << c;
}

If you want to use STL (mine is a little rusty), the following could be the start of something more generic:

void PrintBiggest(int a, int b, int c)
{
   std::vector<int> myints;
   myints.push_back(a);
   myints.push_back(b);
   myints.push_back(c);
   sort(myints.begin(), myints.end());
   cout << myints.back();
}



You might be interested in
Can web sites contain copyright material? <br> Yes <br> No
Maru [420]
Yes they can contain copyright
6 0
3 years ago
Read 2 more answers
What does it mean if you tell a judge you are “taking the fifth”?
ziro4ka [17]
The fifth amendment states that “no person shall be compelled in any criminal case to be a witness against himself.”
5 0
4 years ago
4.Regular maintenance of equipment is an important and necessary activity. 5.Uncheck with your equipment manufacturer for their
Morgarella [4.7K]

Answer:

What's the output of a system modeled by the function ƒ(x) = x5 – x4 + 9 at x = 2?

Please Help

A)

24

What's the output of a system modeled by the function ƒ(x) = x5 – x4 + 9 at x = 2?

Please Help

A)

24

6 0
3 years ago
What is the Definition of actuating
Radda [10]

Explanation:

to put into mechanical action or motion The pump is actuated by the windmill.

7 0
3 years ago
Read 2 more answers
Rob creates a Course_Details table that has four columns: Course_ID, Course_Name, Semester and Credits. A course may have 0.5 cr
tatiyna
Should assign to a full credit 
3 0
4 years ago
Read 2 more answers
Other questions:
  • A company requires an Ethernet connection from the north end of its office building to the south end. The distance between conne
    8·1 answer
  • While traveling in India, Sabina notes all of her daily expenses in rupees in her spreadsheet. At the end of the day, she wants
    5·2 answers
  • What is Blender's default save directory for movie AVI files?
    9·2 answers
  • Iisa is creating a resume in which section should she mention her career goals
    6·1 answer
  • You tried to access an external html page, which can not be opened on the device for preview. open the page in dreamweaver to pr
    13·1 answer
  • Malware that is spread through security warnings or advertisements for antivirus software is known as
    5·1 answer
  • Suppose the inventory is unordered (!) and a sequential search is done to locate a specific artifact. Given that the search is e
    5·1 answer
  • Why must you be careful when handling a hard drive?
    10·1 answer
  • Write a query that returns the first name of a student whose last name is "Patil" and is in the Ravenclaw house.
    9·1 answer
  • Dash transfers several bits of data together at one time<br>​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!