Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

🧮 Console Calculator

A simple Java console-based calculator that performs basic arithmetic operations: addition, subtraction, multiplication, and division. This project was created as part of my Java practice projects to understand user input, conditionals, and basic program flow.


🚀 Features

  • Takes two numbers from the user
  • Supports operators: +, -, *, /
  • Uses switch statement for operation selection
  • Displays the calculated result in the console

📂 File Structure

01-console-calculator
├── src
│   └── calculator.java
└── README.md

💻 Example

=== Console Calculator ===
Enter first number: 10
Enter operator (+, -, *, /): *
Enter second number: 5
Result: 50

📚 Concepts Used

  • Scanner for user input
  • switch statement
  • Arithmetic operators
  • Basic console output