Chapter 3: Problem 21
Writc a program that reads in two floating-point numbers and tests whether they are the same up to two decimal places. Here are two sample runs. Enter a floating-point nunber; \(2.0\) Enter a floating-point nurber; \(1.99998\) They are the sare up to two decimal places. Enter a floating-point nunber: \(2.0\) Enter a floating-point nunber: \(1.98999\) They are different.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.