CBSE Class 10 Computer Applications Question 25 of 26

Python Conditionals and Loops — Question 16

Back to all questions
16
Question

Question 12

Write a program that asks the user for two numbers and prints Close if the numbers are within .001 of each other and Not close otherwise.

Answer
Output
Enter first number: 10.12345
Enter second number: 10.12354
Close