Westonci.ca offers quick and accurate answers to your questions. Join our community and get the insights you need today. Experience the convenience of getting reliable answers to your questions from a vast network of knowledgeable experts. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

Use pseudocode to write a function or procedure that will find the maximum of three numbers a, b, and c.

Sagot :

Answer:

Check if a > b

   if true -> check if a > c

        if true -> a has the maximum value

        if false -> c has the maximum value

   if false -> check if b > c

        if true -> b is the maximum

         if false -> c is the maximum

Explanation:

To find the maximum, you need to find the largest number.

This can be done by making multiple nested if-statements, comparing 2 variables and finding which one is larger.