from tkinter import *

from tkinter.messagebox import *
def buton_click() :
a = int(entry_a.get())
b = int(entry_b.get())
result = a*(4*b-a)
label3[«text»] = str(result)

root = Tk()
root.geometry("400x300")
label_name = Label(text = "Имя и фамилия")

label1 = Label(text = «a =»)
label1.pack()
entry1 = Entry()
entry1.pack()
label2 = Label(text = «b =»)
label2.pack()
entry2 = Entry()
entry2.pack()
label3 = Label(text = «a*(4*b-a)»)
label3.pack()
entry3 = Entry()
entry3.pack()
button = (text= «Обчислити», commad = buton_click)
button.pack()
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2025 SCHOLAR.TIPS - All rights reserved.