An open API service indexing awesome lists of open source software.

https://github.com/kingtroy125/basic_calculator

This repository contains a basic calculator that supports addition, subtraction, multiplication, and division. It runs in a command-line environment and provides user-friendly input prompts.
https://github.com/kingtroy125/basic_calculator

calculator-application project-repository small-projects web-developer web-development website

Last synced: 5 months ago
JSON representation

This repository contains a basic calculator that supports addition, subtraction, multiplication, and division. It runs in a command-line environment and provides user-friendly input prompts.

Awesome Lists containing this project

README

          

# React Calculator

A simple calculator built using React that performs basic arithmetic operations.

## Features
- Basic arithmetic operations: addition, subtraction, multiplication, and division
- Interactive and responsive UI
- Error handling for invalid inputs
- Styled with modern UI components

## Prerequisites
- Node.js and npm/yarn installed

## Installation
1. Clone the repository:
```sh
git clone https://github.com/KingTroy125/Basic_Calculator.git
```
2. Navigate to the project directory:
```sh
cd Basic_Calculator
```
3. Install dependencies:
```sh
npm install
```

## Usage
Run the development server:
```sh
npm start / npm run dev
```
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

## Example
```
Enter first number: 10
Enter operator (+, -, *, /): *
Enter second number: 5
Result: 50
```

## Contributing
Feel free to submit issues or fork the repository and make a pull request with improvements.

## License
This project is licensed under the MIT License.

## Contact
For any questions, reach out via GitHub issues.