Wednesday, 2 December 2015

Tiny Calculator 01

This is a tiny calculator.
  • Only accept integers input
  • Operations: + - * /
  • Perform * and / before + and -
  • c : reset
  • Ent : evaluate
This text is displayed if your browser does not support HTML5 Canvas.
Successful Examples:
  • 3 + 4 * 5 Ent -> 23
  • 3 + 4 + 5 Ent -> 12
  • 32 + 45 - 18 Ent -> 59
  • 3 * 4 * 5 Ent -> 60
  • 3 + 4 * 5 * 2 Ent -> 43
  • 3 + 4 * 5 * 2 - 21 Ent -> 22
  • 72 - 4 * 12 + 6 / 3 * 19 Ent -> 62
  • 3 + 4 * 12 Ent - 99 Ent -> -48
Failed Examples:
  • 3 + -

Source Code


No comments:

Post a Comment