+ 1
Где ошибка?
while True: s=input("Знак") if s=="0": break if s in s!=0: x=float(input("x=")) y=float(input("y=")) if s=="+": print(x+y) elif s=="-": print(x-y) elif s=="*": print(x*y) elif s=="/": if s!=0: print(x/y) else: print("falled")
3 odpowiedzi
+ 4
Guys don't down-vote someone just because they don't speak your language.. I don't speak Russian either but I'd like to help.. Try this Anekcen (Sorry for my spelling, I don't have Russian keyboard):
while True:
s=input("3Hak: ")
if s=="0":
break
elif s!=0:
x=float(input("x="))
y=float(input("y="))
if s=="+":
print(x+y)
elif s=="-":
print(x-y)
elif s=="*":
print(x*y)
elif s=="/":
if s!=0:
print(x/y)
else:
print("failed")
I hope this helps.. All the best..👍
+ 1
thank you:)
+ 1
@Anekcen.. U welcome..