โœ๏ธ

ATM withdrawal

Easy๐Ÿท๏ธ Computational thinking๐Ÿ“‚ Computational Thinking & Pseudocode
๐Ÿงฉ The problem

TAKE the BALANCE and the AMOUNT to withdraw. If there is enough money, DISPLAY “Take your cash” and then the new balance. Otherwise DISPLAY “Not enough money”.

Examples

  • Input: 500, 200 โ†’ Take your cash โŽ 300
  • Input: 100, 200 โ†’ Not enough money

โœ๏ธ Write your pseudocode

Press Run to watch it step by step, and Run tests to check it against every test case.

โ† All practice problems