I can confirm that this answer is correct here. I'm not used to the coding world, so I just used this click-and-drag environment to aid my illiteracy.
To run the mini-program, click the green flag above the head of the cat. Don't blink because it will run in an instant! I have edited the program such that it is generalized for any multiple (under 10), the number you want to detect (also must be under 10) and how many of that number you want to detect (must be under a million). Have fun!
I will solve it for you! The expression I will evaluate is \(\left(\frac{-2}{3}\right)^2\):
\(\left(\frac{-2}{3}\right)^2\) | When you raise a fraction by an exponent, you distribute that exponent to both the numerator and denominator. |
\(\frac{(-2)^2}{3^2}\) | Simplify both the numerator and denominator. |
\(\frac{4}{9}=0.\overline{44}\) | |
By the way, if you would like to type it into a calculator, do it like this: (-2/3)^2. The calculator will output 0.444...