Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

it's a CLI bassed Calculator whitch is created by Muneeb u Rehman it is also publish on NPM

Notifications You must be signed in to change notification settings

Muneeb21-hub/Calculator_CLI_By_Muneeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator_CLI_By_Muneeb

Simple Calculator

A simple command-line calculator that allows you to perform basic arithmetic operations.

Description

Welcome to the Simple Calculator! This program enables you to perform basic arithmetic operations on two numbers. You can choose between addition, subtraction, multiplication, and division. The program will guide you through entering the numbers and selecting the operation, and then it will display the result.

How to Use

  1. Clone or download this repository to your local machine.

  2. Open your terminal and navigate to the directory where the calculator files are located.

  3. Make sure you have Node.js installed on your machine. You can download it from nodejs.org.

  4. Install the required dependencies using the following command:

    npm install
  5. Start the calculator by running the following command:

tsc calculator.ts && node calculator.js
  1. Follow the prompts to enter the two numbers and select the operation you want to perform.

  2. The program will display the result of the selected operation.

Code Overview

The calculator is implemented using JavaScript and the inquirer library for user input. Here's a brief overview of how the code works:

  • The program prompts the user to enter two numbers and select an arithmetic operation.
  • It validates the user's input and performs the selected operation.
  • The result is displayed on the screen.

Feel free to explore the code and customize it as you see fit. You can extend this calculator by adding more complex operations or error handling.

Dependencies

Author

Muneeb u Rehman

About

it's a CLI bassed Calculator whitch is created by Muneeb u Rehman it is also publish on NPM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published