Skip to content

A command-line powered **arithmetic engine** built with Python. It processes core mathematical operations with a clean and efficient interface.

Notifications You must be signed in to change notification settings

MuaddhAlsway/pythonlab01-arithmetic-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 

Repository files navigation

PythonLab - 01 | Arithmetic Engine ๐Ÿงฎ

A command-line powered arithmetic engine built with Python. It processes core mathematical operations with a clean and efficient interface.


๐Ÿš€ Features

  • Supports basic operators: +, -, *, /
  • Handles floating-point numbers
  • Prevents division by zero
  • Rounds results for cleaner output

๐Ÿ“‚ Project Structure

๐Ÿ“ PythonLab-01-Arithmetic-Engine
โ””โ”€โ”€ 01.py

๐Ÿ› ๏ธ Usage

1. Clone the repository:
   ```bash
   git clone https://github.com/your-username/PythonLab-01-Arithmetic-Engine.git
   cd PythonLab-01-Arithmetic-Engine
Run the program:



python 01.py

Example session:

mathematica
Enter an operator (+ - * /): *
Enter the 1st number: 12
Enter the 2nd number: 8
96
๐Ÿ“– Example
mathematica
Enter an operator (+ - * /): /
Enter the 1st number: 22
Enter the 2nd number: 7
3

๐Ÿ’ก Future Enhancements

  • Add support for power (^) and modulus (%)
  • Continuous calculation mode (loop until exit)
  • Enhanced decimal precision (round(result, 2))

About

A command-line powered **arithmetic engine** built with Python. It processes core mathematical operations with a clean and efficient interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages