Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write python code Write a program that prompts for the numerator and denominator of a fraction as integers, and then prints the decimal equivalent of
Write python code
Write a program that prompts for the numerator and denominator of a fraction as integers, and then prints the decimal equivalent of the fraction.
Print only up to 2 decimal places in the fractional part.
Ensure that your program does not fail if the user enters a denominator of 0.
If the user enters a numerator of 1 and a denominator of 3, then your program would print 0.33.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started