This repository contains a C program for performing arithmetic operations on long numbers, specifically addition, subtraction, and multiplication. The program is designed to handle numbers that exceed the typical range of built-in numeric types in C.
- Addition: Perform addition of two long numbers.
- Subtraction: Perform subtraction of two long numbers.
- Multiplication: Perform multiplication of two long numbers.
To get started with the long number calculator, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/long-number-calculator.git mkdir bin\
-
Compile the C program using your preferred C compiler. For example, using
gcc
:Windows:
mingw32-make.exe -f Makefile.win all
Linux:
make
-
Run the compiled program:
Windows :
bin\Calculator.exe
Linux :./bin/Calculator
Once the program is running, you will be prompted to enter two long numbers and choose an operation to perform.
-
Enter the first long number when prompted:
12345678901234567890
-
Enter the second long number when prompted:
98765432109876543210
-
The program will display the result:
Addition is: 111111111011111111100 Multiplication is: 1219326311370217952237463801111263526900
Contributions to this long number calculator are always welcome. If you find any issues or have suggestions for improvement, please create an issue or submit a pull request.