Sectie 1. Hoofdstuk 1
single
challenge 1
Veeg om het menu te tonen
Taak
Swipe to start coding
Implement a basic calculator that can evaluate a mathematical expression provided as a string input. The calculator should support the following operations: addition (+), subtraction (-), multiplication (*), division (/), and parentheses for grouping. The calculator should handle operator precedence correctly and be able to process expressions that include whitespace.
Examples
Input:
3 + 5 * 2 ^ 2
Output
23
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 1
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.