This document provides instructions for an activity to write a program that takes three integer inputs and outputs the smallest of the three values. It asks the user to write a program that prompts the user to input three integers, stores them in variables num1, num2, and num3, then prints the smallest value using an if/else statement to compare the variables and output the one with the lowest value. An example is given where the inputs are 7, 15, 3, and the output would be 3.
This document provides instructions for an activity to write a program that takes three integer inputs and outputs the smallest of the three values. It asks the user to write a program that prompts the user to input three integers, stores them in variables num1, num2, and num3, then prints the smallest value using an if/else statement to compare the variables and output the one with the lowest value. An example is given where the inputs are 7, 15, 3, and the output would be 3.
This document provides instructions for an activity to write a program that takes three integer inputs and outputs the smallest of the three values. It asks the user to write a program that prompts the user to input three integers, stores them in variables num1, num2, and num3, then prints the smallest value using an if/else statement to compare the variables and output the one with the lowest value. An example is given where the inputs are 7, 15, 3, and the output would be 3.
Instructor note: Note: this section of your textbook contains activities that you will complete for points. To ensure your work is scored, please access this page from the assignment link provided in Blackboard. If you did not access this page via Blackboard, please do so now. Write a program whose inputs are three integers, and whose output is the smallest of the three values. Ex: If the input is: 7 15 3 the output is: 3