Skip to content

Perform basic arithmetic operations (addition, subtraction, multiplication, division) with a user-friendly interface. Handles two numbers at a time, ideal for straightforward calculations but lacks support for advanced operations.

Notifications You must be signed in to change notification settings

soumalya-blazing-geek/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Simple Calculator

Overview

This guide provides information on how to use the C calculator and its features. The calculator is a basic tool that can perform fundamental arithmetic operations such as addition, subtraction, multiplication, division, and more.

Requirements

To use this calculator, you need to have Gcc 12.3.0 or a higher version installed on your system.

Code Structure

The code is divided into two parts:

  1. Main Function: Handles user input and displays the result.
  2. Calculator Function: Performs calculations and returns the result.

How to Use

  1. Clone the repository or download the calculator.c file.

  2. Open your terminal or command prompt and navigate to the directory where the file is located.

  3. Compile the program by running the following command:

    gcc calculator.c -o calculator -lm
  4. Run the calculator by typing:

    ./calculator
  5. Enter the option 'help' to view a list of all available features.

  6. Enter the two numbers for the calculation.

  7. The result will be displayed on the screen.

Features

  • Performs basic arithmetic operations (addition, subtraction, multiplication, and division).
  • User-friendly interface for entering numbers and operations.
  • Provides results for simple calculations.

Limitations

  • Currently, it only supports basic arithmetic operations.
  • There is no support for more advanced calculations.
  • The calculator can only handle two numbers at a time.

Conclusion

This calculator is a simple and easy-to-use tool for basic arithmetic calculations. Its basic features make it a good choice for simple arithmetic operations, but it may not be suitable for more advanced calculations.


Developed with ❤️ by Soumalya | [Github] | [Instagram] |

About

Perform basic arithmetic operations (addition, subtraction, multiplication, division) with a user-friendly interface. Handles two numbers at a time, ideal for straightforward calculations but lacks support for advanced operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages