Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 840 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 840 Bytes

Basic Calculator

This is a simple command-line Java program that acts as a basic calculator. It takes two numbers and an operation as input from the user and performs the corresponding calculation.

How to Use

  1. Input Format:

    • The program expects three inputs from the user:
      1. First Number
      2. Second Number
      3. Operation (+, -, *, /)
  2. Running the Program:

  3. Example:

    • User Input:
      10
      5
      +
      
    • Expected Output:
      Result: 15.0
      
  4. Error Handling:

    • The program handles division by zero error.