Python Lab Question 4
Python Lab Question 4
Algorithm:
2. Compare the first number with the second and third numbers.
3. Compare the second number with the first and third numbers.
4. Compare the third number with the first and second numbers.
Program:
a = 10
b = 25
c = 15
largest = a
largest = b
else:
largest = c
Output:
Largest number: 25