va rog
e important
dau coroana
Răspunsuri la întrebare
Răspuns:
import tkinter
#am facut un program python muncit special pt tine
#am lucrat mult la el
#face exact ce vrei sa faca
#o sati apara un tkinter frame under troduci nr ex
#si iti apare rezukattul
def cra():
x=entry.get()
t=false
while t==false:
a=x%10
b=x/10-x%10/10
c=x/100-x%100/100
if a%2==0 and b%2==0:
if c%2==0:
t=true
else:
x=x+1
else:
x=x+1
label1=tkinter.Label(frame, text=x)
label1.pack()
frame=tkinter.Tk()
entry=tkinter.Entry(frame)
entry.pack()
butto=tkinter.Button(frame, text="Calculate", command=cra)
butto.pack()
frame.mainloop()