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 input by the user

Respuesta :

In python:

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

print(round(number - int(number), 2))

Answer:

To just print the decimal, use code (in python)

Explanation:

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

print(number - int(number))

This code should cause the system to print just the decimals at the end of the number.

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE