https://github.com/awkward-py/ez-arithmetic-c
https://github.com/awkward-py/ez-arithmetic-c
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/awkward-py/ez-arithmetic-c
- Owner: awkward-py
- Created: 2023-11-10T12:38:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-23T11:46:59.000Z (over 1 year ago)
- Last Synced: 2024-12-31T05:26:23.644Z (5 months ago)
- Language: C
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EZ-Arithmetic-C
This is a simple C program that performs basic arithmetic operations on two numbers. The program supports addition, subtraction, multiplication, and division.
## How to Use
1. **Clone the Repository:**
```sh
git clone https://github.com/awkward-py/EZ-Arithmetic-C.git
cd EZ-Arithmetic-C
```2. **Compile the Program:**
```sh
gcc Arithmetic.c -o Arithmetic
```3. **Run the Program:**
```sh
./Arithmetic
```4. **Follow on-screen instructions:**
- Enter the first number.
- Enter the second number.
- View the results of addition, subtraction, multiplication, and division.## Features
- Addition
- Subtraction
- Multiplication
- Division (with error handling for division by zero)## Example
```sh
Enter first number: 10
Enter second number: 5
Sum: 15.00
Difference: 5.00
Product: 50.00
Quotient: 2.00```