编程知识 cdmana.com

Programming with a single branch if statement

img




Refer to the answer 1:
x = float(input("Input x:"))if x != 0:    y = x ** 2 + 2 / 3 * (x + 1)    print(f"y={y:.2f}")



Refer to the answer 2:

版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/11/20211109184511287k.html

Scroll to Top