An open API service indexing awesome lists of open source software.

https://github.com/awkward-py/ez-arithmetic-c


https://github.com/awkward-py/ez-arithmetic-c

Last synced: 3 months ago
JSON representation

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

```