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.
- Host: GitHub
- URL: https://github.com/kingtroy125/basic_calculator
- Owner: KingTroy125
- License: mit
- Created: 2025-02-09T16:14:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-10T13:52:12.000Z (about 1 year ago)
- Last Synced: 2025-02-10T14:45:05.304Z (about 1 year ago)
- Topics: calculator-application, project-repository, small-projects, web-developer, web-development, website
- Language: TypeScript
- Homepage: https://calculator-project-one-nu.vercel.app/
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.