Computer Science, asked by virginiacruz05, 6 months ago

2.4 Code Practice: Question 2
Write a program that accepts a number as input, and prints just the decimal portion. Your program should also work if a negative number is inputted by the user.

Answers

Answered by SamainaShree
1

Answer:

num = float(input("Enter a number: "))

x =int(num)

y =float(num - x)

print(y)

Similar questions