A lightweight calculator built in C using Replit, designed to handle single-line mathematical expressions while supporting notation style conversions (Infix, Postfix, and Prefix).
This project focuses on:
- Converting notation styles: Infix, Postfix, and Prefix.
- Performing calculations: Handles basic single-line mathematical expressions.
- Customizable output: Option to display results with desired decimal precision.
- Notation Conversion: Seamlessly converts between Infix, Postfix, and Prefix notations.
- Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
- Customizable Output: Adjust the number of decimal points in the result.
- C Programming Language
- Replit
- Clone the repository:
git clone <repository_url> cd reborn-as-a-calculator
- Open the project
- Open Project in Replit and press run on main.c (Recommended) or
- Download an executable file
- Input:
3 + 4 * 2
(Infix notation) - Conversion:
- Postfix:
3 4 2 * +
- Prefix:
+ 3 * 4 2
- Postfix:
- Calculation Result:
11.00
(2 decimal points).
- Replit for providing an accessible development environment.
- Inspiration from classic calculator functionalities and notation handling.