You see a math operation which start with number 100. print(100/?*?).Your task find 2 numbers that in result will 100.0 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

You see a math operation which start with number 100. print(100/?*?).Your task find 2 numbers that in result will 100.0

Find 2 empty numbers

2nd Aug 2021, 7:04 AM
Georgij Galin
Georgij Galin - avatar
1 Answer
+ 2
You can declare 2 variables, for example a and b, and run it in the loop, if 100/a*b is equal 100.0, a and b is answer, but in this case a and b is equal, and answer is a=b(1 and 1, 2 and 2, 3 and 3, 4 and 4 etc.)
2nd Aug 2021, 7:25 AM
Roma Butaku
Roma Butaku - avatar