From 3e08bdf2f61f7946257ffeebfc21a341e8f85ef3 Mon Sep 17 00:00:00 2001 From: Dohou Daniel Favour Date: Sun, 20 Aug 2023 23:41:22 +0100 Subject: [PATCH] @dohoudaniel - Update README.md --- ochijehfranklin/README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ochijehfranklin/README.md b/ochijehfranklin/README.md index 5353d71..ebd65b6 100644 --- a/ochijehfranklin/README.md +++ b/ochijehfranklin/README.md @@ -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`