Computers and Technology

Write a program that reads in two double numbers followed by an integer (say n). the goal of the program is to check if the two numbers are equal to n significant digits
the input will be one or more lines of three numbers. the first two numbers are doubles and represent the two numbers that are to be compared. the third number is an integer and represents the number of significant digits to check (for equality of the two numbers).
the output will show the difference up to 10 decimal places (as shown in sample output) and then whether the numbers are equal or not.
sample input
1.112 1.113 2
1.123 1.124 3

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, passions3534ovf6dt
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, BluedragonKBT44
The gene form of a trait is called a(n) 
Answers: 2
image
Computers and Technology, 24.06.2019 11:30, smann211
Convert 11001110(acdd notation) into decimal
Answers: 2
image
Computers and Technology, 24.06.2019 15:30, sonyfan
What is the total number of time zones that can be configured to show by default in a calendar in outlook 2016?
Answers: 1
Do you know the correct answer?
Write a program that reads in two double numbers followed by an integer (say n). the goal of the pro...

Questions in other subjects:

Konu
Mathematics, 13.05.2021 06:40