We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59527c7 commit b2c6dc3Copy full SHA for b2c6dc3
findlargestno.md
@@ -0,0 +1,21 @@
1
+# Python program to find the largest number among the three input numbers
2
+
3
+# change the values of num1, num2 and num3
4
+# for a different result
5
+num1 = 10
6
+num2 = 14
7
+num3 = 12
8
9
+# uncomment following lines to take three numbers from user
10
+#num1 = float(input("Enter first number: "))
11
+#num2 = float(input("Enter second number: "))
12
+#num3 = float(input("Enter third number: "))
13
14
+if (num1 >= num2) and (num1 >= num3):
15
+ largest = num1
16
+elif (num2 >= num1) and (num2 >= num3):
17
+ largest = num2
18
+else:
19
+ largest = num3
20
21
+print("The largest number is", largest)
0 commit comments