Skip to content

joewus/SimpleCalculator-with-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

SimpleCalculator-with-C

Calculator Program

This program performs basic arithmetic operations: addition, subtraction, multiplication, and division.

Usage

  1. Clone the repository:

    git clone https://github.com/your-username/your-repository.git
    cd your-repository
  2. Compile the program:

    gcc -o calculator calculator.c
  3. Run the program:

    ./calculator
  4. Follow the prompts to select an operation and input numbers.

Example

Hello, what operation would you like to carry out?
Select 1 for addition, 2 for subtraction, 3 for multiplication, 4 for division: 1
Enter your first number: 5
Enter your second number: 3
Your result is: 8.00

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages