Sunday, November 3, 2019

                                     E-BOX    

                               BASICS OF C PROGRAMMING   

Conditional Statements :-  Code Analysis

 PROBLEM  - 4:

 A number is said to be an approximate value of the other if they differ by utmost 0.5.

So write a  program to find whether the given number is Approximate number of other.
Input Format:
Input consists of Two Float type numbers.
Output Format:
Displays Whether the number is approximate or not.
 
[All text in bold corresponds to input and the rest corresponds to output]
Sample Input and output 1:
Enter the Two numbers:
14
14.3
Approximate number
 
Sample Input and output 2:
Enter the Two numbers:
15
14.8
Approximate number
 
Sample Input and output 3:
Enter the Two numbers:
13
14.3
Not an Approximate number



SOLUTION : 



No comments:

Post a Comment

                                                 E-BOX                                                     BASICS OF C PROGRAMMING       i -...

https://amzn.to/2LAmadv