Skip to content

"A console-based calculator in Java, built using Scanner, loops, and methods for basic arithmetic operations."

Notifications You must be signed in to change notification settings

Sadaqath18/java-cli-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Ÿ Java Console Calculator

A simple Java Console Calculator that performs basic arithmetic operations like addition, subtraction, multiplication, and division.
This project was developed as part of an internship task to practice Java syntax, loops, methods, and console I/O.


๐Ÿš€ Features

  • โž• Addition
  • โž– Subtraction
  • โœ–๏ธ Multiplication
  • โž— Division (with divide-by-zero handling)
  • ๐Ÿ” Looping menu to perform multiple calculations until user exits

๐Ÿ› ๏ธ Tech Stack

  • Language: Java (JDK 8 or above)
  • Tools: Any IDE (IntelliJ IDEA, VS Code, Eclipse) or command line

โ–ถ๏ธ How to Run

1. Clone this repository

git clone https://github.com/Sadaqath18/java-console-calculator.git
cd java-console-calculator

2. Compile the program

javac Calculator.java

3. Run the program

java Calculator

๐Ÿ“ธ Screenshots

Here are some sample runs of the calculator in action:

Operation Screenshot
โž• Addition divide-by-zero
โž– Subtraction divide-by-zero
๐Ÿšซ Divide-by-Zero Error divide-by-zero
โ†ฉ๏ธ Exit Option exit

Author

  • S Sadaqath Ulla Qureshi
  • Github: Sadaqath18

About

"A console-based calculator in Java, built using Scanner, loops, and methods for basic arithmetic operations."

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages