This program performs basic arithmetic operations: addition, subtraction, multiplication, and division.
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git cd your-repository -
Compile the program:
gcc -o calculator calculator.c
-
Run the program:
./calculator
-
Follow the prompts to select an operation and input numbers.
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