Skip to content

Fully functional 4-function calculator programmed in C

Notifications You must be signed in to change notification settings

JoelMoyal/Calculator-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project status: Final.

Technologies Used: C

Fully Functional Calculator in C

Fully functional, four-operational calculator programmed in C. Operations available are subtraction, multiplication, division and addition. Users can choose which operation they want to perform.

Table of Contents

Installation

  1. Clone the repository:
 git clone https://github.com/JoelMoyal/Calculator-C.git
  1. Install dependencies:

macOS:

To compile and run the project on macOS, you'll need to install GCC. Here's how you can do it:

  • Install Homebrew
brew install gcc

Windows

To compile and run the project on Windows, you can use MinGW, a port of the GNU Compiler Collection (GCC). Here's how you can do it:

  1. Download the MinGW installer
  2. Select GCC during installation.
  3. Add MinGW to PATH.

Usage

Prerequisite

  • Have C compiler installed

How to Run and Build the Project:

Option 1 - Terminal

Steps:

  1. Navigate to the directory of the project
cd [your_project_directory]
  1. Run the following command to build the project
  gcc -o main main.c
  1. Run the following command to run the project
  ./main

Option 2 - Program

Steps:

  1. Navigate to the directory of the project
  2. Run the batch file by double clicking or right click and select #run#

About

Fully functional 4-function calculator programmed in C

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages