- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Write two integers whose difference is more than $-$6 but these integers should be less than $-$6.
Given: Integer $-$6.
To find: Here we have to find two integers whose difference is more than $-$6 but these integers should be less than $-$6.
Solution:
We know that integers less than $-$6 are: $-$7, $-$8, $-$9 ... and so on.
Now there are many pairs of integers whose difference is more than $-$6.
For example:
($-$20 and $-$19)
Calculating difference between $-$20 and $-$19;
$-$20 $-$ ($-$19)
= $-$20 $+$ 19
= $\mathbf{-}$1
So, both $-$20 and $-$19 are less than $-$6 but their difference ($-$1) is more than $-$6.
Advertisements