Bad Calculator

Enter a math problem and press enter

How does this work?