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
marusya05 [52]
4 years ago
6

Write an if statement that assigns to the variable biggest the Greatest value contained in variables i, j and k, Assume the thre

e values are distinct.
Computers and Technology
1 answer:
Lelechka [254]4 years ago
8 0

Answer:

if(i > j && i > k) // check if i is greatest

{

   biggest = i;

}

else if( j> i && j > k) // check j is greatest

{

    biggest = j;

}

// else highest is k

else                // otherwise k is greatest

{

   biggest = k;

}

Explanation:

Following are the program in c++ language

#include<iostream> // header file

using namespace std; // namespace

int main() // main function

{

int i,j,k;// varaible declaration

int biggest;

cout<<" \nenter the value i,j and k:\n ";

cin>>i>>j>>k;

if(i > j && i > k) // check if i is greatest

{

   biggest = i;

}

else if( j> i && j > k) // check j is greatest

{

    biggest = j;

}

// else highest is k

else                // otherwise k is greatest

{

   biggest = k;

}

cout<<" the biggest number is :"<<biggest;

return(0);

}

Output:

enter the value i,j and k:

67

8

9

the biggest number is :67

In this  program we check the following condition:

if(i > j && i > k) then it store the value of i into biggest variable .

if( j> i && j > k) then it store the value of j into biggest variable .

otherwise the value of k is store into biggest variable .

 

You might be interested in
Animation and transition effects will distract your audience when using a slide show presentation aid. True or false ?
lions [1.4K]
I suspect the answer they're looking for is false. However, as an experienced professional in learning and development, I can tell you that when done right these effects can enhance a presentation.
4 0
3 years ago
Read 2 more answers
Which of the following strategies will help you to stay focused and on topic while writing your essay?
AveGali [126]

Answer:

the answer is D,both A and B

8 0
3 years ago
Read 2 more answers
IMPORTANT HELP
balu736 [363]

Answer:

plz am so sorry I don't no it

Explanation:

Plz give me brainiest

6 0
3 years ago
You replaced the LCD panel in a laptop computer and verified full system functionality, including wireless connectivity. The cus
Degger [83]

Answer:

There was a mistake in the question. The question included a possible answer. I agreed with the answer given and provide an explanation why I agreed with the answer given.

ANSWER: The laptop's wireless radio is toggled to the off position

Explanation:

Since the laptop technician has verified full system functionality before the customer picked up the item then the problem is likely a setting issue. For the technician to test the wireless connectivity and was satisfied, it means the wireless LAN card was installed and the antennas are working to verify there are no hardware issues. The correct device driver must have been installed as well. Since other users can connect to the WAP it means it is not an external problem. All that is left to check is if the wireless radio is ON or OFF. The customer must have mistakenly toggled the wireless radio OFF and he needs to turn it on in other to connect to the Wireless Access Point.

3 0
3 years ago
jack lost all the data he saved on his desktop because of power outage while working on a presentation. on which of these comput
Nesterboy [21]
Hard drive that im sure


8 0
3 years ago
Read 2 more answers
Other questions:
  • If you are trying move a hard drive from a non-working computer to a working computer for the purposes of accessing the data on
    5·1 answer
  • Noah's document was very plain and would not catch the readers' attention. Select each item below that would make
    7·1 answer
  • GUI allows users to communicate with a device and see what they are doing onscreen.
    9·1 answer
  • What are the features of Cobol language that make it suitable for programming business applications.
    6·1 answer
  • A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county s
    11·1 answer
  • How do you freeze the total cell so that it doesn't change when copied?
    6·1 answer
  • What are benefits of using debugging tools? Check all that apply.
    7·1 answer
  • (TCO B) The symbol shown as a three-sided box that is connected to the step it references by a dashed line is what?
    12·1 answer
  • Why do software developers prefer to use high-level language to author programs?
    8·1 answer
  • All parking revenue comes from a home teams games? True or false
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!