forked from ALX-SE-Algorithmia/Demo-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06332ef
commit 3e08bdf
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
This is my contribution to Algorithmia Open Source project | ||
This is my contribution to the Algorithmia Open Source Demo Project. | ||
|
||
This directory contains my solution for the basic C calculator. | ||
|
||
This calculator is built in C, and performs basic arithmetic calculations: | ||
+ Addition | ||
+ Subtraction | ||
+ Division and | ||
+ Subtraction | ||
|
||
This calculator takes in two numbers and an arithmetic operator (any of + , - , * and / ) as standard input from the user, and returns the result of the arithmetic operation. | ||
|
||
It also handles errors from the user: | ||
+ Wrong input when called for numbers | ||
+ Invalid arithmetic operator | ||
|
||
To use this calculator: | ||
1. Clone this repo: `git clone https://github.com/ALX-SE-Algorithmia/Demo-Project/` | ||
2. Navigate into this directory: `cd ochijehfranklin` | ||
3. Run this command: `gcc calculator.c -o calculator ; ./calculator` |