Skip to content

Files

Latest commit

01d9c47 · Aug 4, 2023

History

History
This branch is 17 commits behind ALX-SE-Algorithmia/Demo-Project:main.

collins_apollo

BASIC ARITHMETIC CALCULATOR


Introduction.

This is a basic calculator that when compled, allows user to perform basic mathematical expression such as Addition, Subtraction, multiplication and division.The program can be executed on the Shell Terminal.


Arithmetics.

  1. Addition '+' eg. 5 + 6 = 11.
  2. Subtruction '-' eg 6 - 1 = 5.
  3. Division '/' eg 12 / 2 = 6.
  4. Multiplication '*' eg 4 * 5 = 20.

Usage.

Exiting the calculator :-Press 'q' to exit calculator.
clear screen :-Press 'c' to clear the screen


Compilation.

  1. clone the repository
  2. Go in to the repository ie. cd
  3. Navigate further in to the collins_apollo directory. You can run the command below to compile and execute
 gcc main.c main.h calculator.c errorhandler.c errorhandler.h -o calc && ./calc

Contact

You can reach me on my email at [bristarcollins@gmail.com]