Problem 2133. Reverse Calculator
Use this reverse calculator and give correct output
Its simple, In my Reverse calculator if you press 0 it will be considered as 9. Likewise 1 will be 8, 2 will be 7, 3 will be 6,......., 9 will be 0.
Here you will get two numbers and an operator(+ - * /). From this calculate the output.
Example:
Inputs: numbers=[3 4], operator='+'
Output: Value=11 (Because 3 will be considered as 6, 4 will be considered as 5. So 6+5=11)
Solution Stats
Problem Comments
-
2 Comments
There's no warning to not use feval or str2func but I still can't use it?
Can someone tell me why?
I believe that those functions have been banned site-wide. This is one of the few problems where that universal ban is frustrating for those not seeking to hack...
Solution Comments
Show commentsProblem Recent Solvers179
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
46273 Solvers
-
Sort a list of complex numbers based on far they are from the origin.
5414 Solvers
-
Who knows the last digit of pi?
641 Solvers
-
Number of 1s in a binary string
7708 Solvers
-
Getting the indices from a vector
8314 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!