Showing posts with label Largest Among Three Numbers in Python.. Show all posts
Showing posts with label Largest Among Three Numbers in Python.. Show all posts

Monday, August 3, 2020

Write a Program to Find Largest Among Three Numbers in Python.

Largest Among Three Numbers in Python.


print("Enter the Three Numbers ::")
 
x = int(input())
y = int(input())
z = int(input())
 
if x>y and x>z:
print(x, " is largest")
elif y>x and y>z:
print(y, " is largest")
else:
print(z, " is largest")


OUTPUT

12
15
50
50 is largest
from tkinter import *

from tkinter.ttk import *

window = Tk()

window.title("Welcome to Coding Block!")

window.geometry('350x200')

comb = Combobox(window)

comb['values']= ("Python","C++" , "Android", "C", "Java", "JavaScript")

comb.current(0)

comb.grid(column=0, row=0)

window.mainloop()