Question: I need it in Coral Simulator Write a program whose inputs are three integers, and whose outputs are the largest of the three values and

I need it in Coral Simulator

Write a program whose inputs are three integers, and whose outputs are the largest of the three values and the smallest of the three values. If the input is 7 15 3, the output is:

largest: 15 smallest: 3

Your program should define and call two functions:

Function LargestNumber(integer num1, integer num2, integer num3) returns integer largestNum
Function SmallestNumber(integer num1, integer num2, integer num3) returns integer smallestNum

The function LargestNumber should return the largest number of the three input values. The function SmallestNumber should return the smallest number of the three input values.

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 Databases Questions!