Write a program that takes a decimal number from the user and then prints the integer part and the decimal



Write a program that takes a decimal number from the user and then prints the integer part and the decimal part separately. For example, if the user enters 2.718, the program prints: Integer part = 2 and decimal part = .718 in python




Leave a Reply

Your email address will not be published.