Computer Science, asked by bfbjfbbfj, 1 year ago

what is the second answer for 2.4 code practice on edhesive

Answers

Answered by Anonymous
17

Imports math

X=int(input ("enter a no:"))

Print ( math.sqrt( math.fabs(x));

Hope thse would helps u to☆▪☆《▪¤▪》

Answered by aaliyahblack
19

Answer:

Question 1:

import math  

x = int(input ("Input a negative or positive integer of your choice: "))

print (math.sqrt(math.fabs(x)))

Question 2:

import math

x = float(input("Input a decimal number of your choice: "))

y=int(x)

x=x-y

print(math.fabs(x))

Explanation:

Similar questions