Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: STDIN calculator

  • The program will ask the user for a number, and for an operator (+, -, /, *) and for another number.
  • It will then do the appropriate mathematical operation and print the result.