0
Why the mathmatic root doesnt work with me in the end of this code (python)?
x=float(input()) y=float (input() ) print ("The multiplication of the two numbers is" ,x*y) print ("The quotient is",x/y) print ("albaqe men al qesma",x%y) print("the summation is",x+y) print("The result of the subtraction is",x-y ) print("the first number to the power of the second is", x**y) print ("the first number to the root of the second is" ,x//y)
5 ответов
0
y-th root of x:
x**(1/y)
+ 2
Be smart 😉:
Square root (math.sqrt): x**(1/2) or x**0.5
+ 1
The operator in the last expression is an integer divisor.
If x < y then x//y = 0
0
How can i do a root to a number
0
Thanks for both of u