Answer to Question #88953 in C++ for Charlie

Question #88953
#include <iostream>
using namespace std;

void main()
{
int no1, no2, no3;

cout << “Enter the first value : “
cin >> no1;
cout << “Enter the second value : “
cin >> no2;

if (no1 < no2)
min = no1;
if (no2 <= no1)
min = no2;

cout << “The lowest value is “ << min << endl;
}



(a) What is the output if the value for no1 is 5 and no2 is 6? Provide the tracing table.
(5 marks)

(b) Edit the program to output the highest value.
1
Expert's answer
2019-05-01T09:27:00-0400
Dear Charlie, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS