Skip to content

A basic long addition and multiplication calculator...........

License

Notifications You must be signed in to change notification settings

Soumikcoder/Long_Calculator_in_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Long Number Calculator

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.

Calculator Screenshot

Features

  • Addition: Perform addition of two long numbers.
  • Subtraction: Perform subtraction of two long numbers.
  • Multiplication: Perform multiplication of two long numbers.

Installation

To get started with the long number calculator, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/long-number-calculator.git
    mkdir bin\
  2. Compile the C program using your preferred C compiler. For example, using gcc:

    Windows: mingw32-make.exe -f Makefile.win all

    Linux: make

  3. Run the compiled program:

    Windows : bin\Calculator.exe Linux : ./bin/Calculator

Usage

Once the program is running, you will be prompted to enter two long numbers and choose an operation to perform.

  1. Enter the first long number when prompted:

     12345678901234567890
  2. Enter the second long number when prompted:

    98765432109876543210
  3. The program will display the result:

    Addition is: 111111111011111111100
    Multiplication is: 1219326311370217952237463801111263526900

Contributing

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.

About

A basic long addition and multiplication calculator...........

Topics

Resources

License

Stars

Watchers

Forks

Languages