- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Make up as many expressions with numbers (no variables) as you can from three numbers 5,7 and 8 . Every number should be used not more than once. Use only addition, subtraction and multiplication.

(Hint : Three possible expressions are $ 5+(8-7), 5-(8-7),(5 \times 8)+7 $; make the other expressions.)

To do:

We have to make up as many expressions with numbers (no variables) as we can from three numbers 5,7 and 8.

Solution:

Some of the expressions formed by 5, 7 and 8 are as follows:

$5+(8-7)$

$5-(8-7)$

$5-(8+7)$

$(5 \times 8)+7$

$(5 \times8) - 7)$

$5 \times (8 + 7)$

$(7 + 5) \times 8$

$(8 – 5) \times 7$

$(8 + 5) \times 7$

$(7 – 5) \times 8$

- Related Questions & Answers
- Can we distinguish numbers as lucky and unlucky numbers?
- addEventListener() not working more than once with a button in JavaScript?
- Check if a number can be expressed as sum two abundant numbers in C++
- Program to check a number can be written as a sum of distinct factorial numbers or not in Python
- Program to print numbers such that no two consecutive numbers are co-prime and every three consecutive numbers are co-prime Using C++
- Check if a number can be expressed as a sum of consecutive numbers in C++
- Program to count how many numbers should be appended to create all numbers from 1 to k in C++
- Make three numbers Zero in C++
- Make three numbers Zero in Python
- How do you make a separation and divorce as amicable as possible?
- How many digits should be there in string or number so that it can be specified as a date value by MySQL?
- C++ Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers
- Check if a number can be represented as a sum of 2 triangular numbers in C++
- Check if a prime number can be expressed as sum of two Prime Numbers in Python
- Java Program to Check Whether a Number can be Expressed as Sum of Two Prime Numbers
- Find if n can be written as product of k numbers in C++

Advertisements