Question: / / Declare variables to hold the three input values integer num 1 integer num 2 integer num 3 integer largest / / Get the

// Declare variables to hold the three input values
integer num1
integer num2
integer num3
integer largest
// Get the three integers from input
// Assume the first number is the largest initially
largest = num1
// Compare num2 with the current largest
if num2> largest
largest = num2
// Compare num3 with the current largest
if > largest
largest = num3
// Output the largest number
Put largest to output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!