Skip to content

Arjun1152006/Simple_Calculator_Using_Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Simple_Calculator_Using_Java

A simple Java-based console calculator that allows users to perform basic arithmetic operations in a loop until they choose to exit.

Features: Addition, Subtraction, Multiplication, and Division

Division by zero handling (returns error message instead of crashing)

Interactive menu displayed on each iteration

User-friendly loop: continue calculations until "Exit" option is chosen

How it Works: The program displays a menu of operations.

The user selects an option (1–5).

The program asks for two numbers.

The result of the chosen operation is displayed.

The loop continues until the user selects "Exit".

Example Run: text ==== Welcome to Looping Calculator ====

Choose an operation:

  1. Addition (+)
  2. Subtraction (-)
  3. Multiplication (*)
  4. Division (/)
  5. Exit Enter your choice (1-5): 1 Enter first number: 5 Enter second number: 3 Result: 8.0 Tech Stack: Language: Java

Input Handling: Scanner class

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages