Largest of Three Numbers


To implement a program that finds the largest among any given three numbers. 



The program to find the largest number of any given three numbers and their equivalent low-level language instructions executed by the hardware are given below:

if_false   Checks if the condition evaluated to be false. 
if_true Checks if the condition evaluated to true. 
in It reads the input from the user and stores it in a variable. 
label Is used to mark the position in the low-level language instructions to enable jumping to the marked position. 
load It loads a value of a global or local variable to the given register. 
gt Greater than operator, checks whether the first operand is greater than second operand and return a boolean value based on the condition. 
out It prints the output value to the screen. 
exit Exit from the execution.  


Learning Outcomes

The provided Python program for finding the largest among three integer numbers is a simple example that covers several fundamental concepts in programming. 

  • Use of the input() function to receive user input. The input function takes user input as a string, and int() is used to convert it into an integer. 
  • Introduction to conditional statements for decision-making. Use of the if, elif (else if), and else keywords to execute different blocks of code based on the conditions. 
  • Application of logical operators (and) to combine multiple conditions. 
  • Utilizing comparison operators (>=) to compare values and make decisions based on the comparisons. 
  • Python uses indentation to define blocks of code. Proper indentation is essential for the correct execution of the program.