This C# project implements a simple calculator that performs basic arithmetic operations: addition, subtraction, multiplication, and division.
User-friendly and easy-to-use interface.
Supports both whole numbers and decimals.
Error handling for invalid inputs.
Main menu to perform another calculation or quit the application.
Run the calculatrice.exe program.
Enter the first number.
Enter the second number.
Enter the desired operation (+, -, *, /).
The result of the operation will be displayed.
Type "R" to perform another calculation or "Q" to quit.
.NET Core SDK (compatible with C#).
C# IDE (e.g., Visual Studio, Visual Studio Code with C# extension).
Entrer le 1er nombre :
ZE
Vous n'avez pas entré un entier ! veuillez saisir un nombre entier svp
Entrer le 1er nombre :
12
Entrer le 2er nombre :
DRG
Vous n'avez pas entré un entier ! veuillez saisir un nombre entier svp
Entrer le 2er nombre :
1234,5
Entrez une opération (+ ou - ou * ou /) ou 'Q' pour quitter
+
le résultat est : 1246,5
Tapez R pour refaire une opération ou Q pour quitter l'application.
H
Votre saisie est invalide !
Tapez R pour refaire une opération ou Q pour quitter l'application.
R
Entrer le 1er nombre :
1
Entrer le 2er nombre :
2
Entrez une opération (+ ou - ou * ou /) ou 'Q' pour quitter
/
le résultat est : 0,5
Tapez R pour refaire une opération ou Q pour quitter l'application.
Q
Vous avez Quitter l'application au revoir !
This project can be easily extended to include additional functionalities such as:
Operation history.
Calculations with more complex expressions.
Unit conversion.
Graphical user interface.