naemazam / basic-calculator-cli

A simple command-line interface (CLI) calculator application in C++. This application allows you to perform basic arithmetic operations easily from your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

basic-calculator-cli

A simple command-line interface (CLI) calculator application in C++. This application allows you to perform basic arithmetic operations easily from your terminal.

Features

  1. Addition: Add two numbers.
  2. Subtraction: Subtract one number from another.
  3. Multiplication: Multiply two numbers.
  4. Division: Divide one number by another.
  5. Exit: Exit the application.

Installation

Clone the repository from GitHub:

git clone https://github.com/naemazam/basic-calculator-cli.git
cd basic-calculator-cli

Building

To compile the application, make sure you have a C++ compiler installed. Then, run the following commands:

g++ -o calculator calculator.cpp

Usage

Run the application:

./calculator

Follow the on-screen prompts to perform arithmetic operations.

Example

Welcome to the Basic Calculator CLI!

1: Addition
2: Subtraction
3: Multiplication
4: Division
5: Exit

Choose an option: 1
Enter the first number: 10
Enter the second number: 5
Result: 15

1: Addition
2: Subtraction
3: Multiplication
4: Division
5: Exit

Choose an option: 4
Enter the first number: 10
Enter the second number: 2
Result: 5

1: Addition
2: Subtraction
3: Multiplication
4: Division
5: Exit

Choose an option: 5
Exiting the application.

Contributing

Enjoy using basic-calculator-cli! Happy calculating!

About

A simple command-line interface (CLI) calculator application in C++. This application allows you to perform basic arithmetic operations easily from your terminal.


Languages

Language:C++ 100.0%