Skip to content

dipesh22104114/cli-calculator-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Command-Line Calculator App

This is a simple command-line calculator written in Python. It allows users to perform basic arithmetic operations interactively.


โœ… Features

  • Addition
  • Subtraction
  • Multiplication
  • Division (with error handling for divide-by-zero)
  • Menu-driven interface
  • Loops until user exits
  • Handles invalid input choices

๐Ÿ’ป How to Run

  1. Make sure you have Python installed.
  2. Open a terminal or command prompt.
  3. Navigate to the folder containing calculator.py.
  4. Run the program using:
python calculator.py
Follow the on-screen instructions.

๐Ÿ“‚ Files Included

calculator.py     # Main Python file
README.md         # This file

๐Ÿงช Sample Output
mathematica
Options:
1. Add
2. Subtract
3. Multiply
4. Divide
5. Exit
Choose operation (1/2/3/4/5): 3
Enter first number: 4
Enter second number: 6
Result: 24.0


๐Ÿ› ๏ธ Technologies Used
Python 3.x

Terminal / CLI

๐Ÿ™‹โ€โ™‚๏ธ Author
Name: Dipesh Sahani
Project: Task 1 โ€“ Calculator CLI App

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages