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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100%(1)100% found this document useful (1 vote)
980 views1 page
3.25 LAB Smallest Number
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.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
3.
25 LAB: Smallest number
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