Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Calculator

A simple C-based calculator that performs basic arithmetic operations using bitwise operations.

Features

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/binary-calculator.git
    cd binary-calculator
  2. Compile the project:

    gcc -o bin_calculator main.c calculator.c -I.

Usage

Run the calculator:

./bin_calculator

Example usage in C:

#include <stdio.h>
#include "calculator.h"

int main() {
    int result = calculate(10, 5, '+');
    printf("Result: %d\n", result);
    return 0;
}

Compilation & Running

To compile and run:

gcc -o bin_calculator main.c calculator.c -I.
./bin_calculator

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages