Sezione 1. Capitolo 1
single
challenge 1
Scorri per mostrare il menu
Compito
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
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 1
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione