Skip to content

Description**: A basic calculator built in Java that performs arithmetic operations such as addition, subtraction, multiplication, and division. Designed for beginners to practice Java programming.

Notifications You must be signed in to change notification settings

varun-varada/Simple-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simple Calculator

A simple command-line calculator built in Java that performs basic arithmetic operations such as addition, subtraction, multiplication, and division.

Table of Contents

Features

  • Performs basic arithmetic operations:
    • Addition
    • Subtraction
    • Multiplication
    • Division (with error handling for division by zero)

Installation

  1. Ensure you have Java installed on your machine. You can download it from Oracle's official website.
  2. Clone the repository:
    git clone https://github.com/varun-varada/SimpleCalculator.git
    

Navigate

cd SimpleCalculator

Usage

compile java file -javac A.java -run the Java program

Example

Enter the first number: 10 Enter the second number: 5 Select operation:

  1. Addition
  2. Subtraction
  3. Division
  4. Multiplication 2 Result: 5

About

Description**: A basic calculator built in Java that performs arithmetic operations such as addition, subtraction, multiplication, and division. Designed for beginners to practice Java programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages