Skip to content

Njoxpy/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Calculator.c

A simple command-line calculator program written in C.

Description

calculator.c is a basic calculator that performs addition, subtraction, multiplication, and division operations on two numbers. The program takes user input, processes the operation, and displays the result.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division

Usage

  1. Clone the repository:

    git clone https://github.com/Njoxpy/Calculator
    
  2. Compile the program:

gcc calculator.c -o calculator
  1. Run The Program
    ./calculator
    
  2. Follow the on-screen instructions to enter two numbers and choose an operation. Example:
Enter the first number: 10
Enter the second number: 5

Choose operation:
1. Addition
2. Subtraction
3. Multiplication
4. Division

Enter the operation number: 1

Result: 15

Contributing

If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix:
git checkout -b feature/new-feature
  1. Make your changes and commit them.
git commit -m 'Add new feature'
  1. Push to the branch:
git push origin feature/new-feature
  1. Open a pull request.

About

Welcome to the Calculator-C repository! This repository hosts a simple yet efficient calculator implemented in the C programming language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages