Skip to content

nomi2k4/Simple-Calculator-Program-Using-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Simple Calculator Program Using Functions:

This C++ program was written as part of my learning journey to understand the basics of C++ programming. The program implements a simple calculator that performs basic arithmetic operations using functions.

Program Overview:

- Prompts the user to input two numbers
- Presents a menu with options for basic arithmetic operations (sum, subtract, product, division)
- Uses a switch statement to handle user input
- Calls corresponding functions to perform calculations
- Outputs the result of the operation

Features:

- User input for numbers and operation choice
- Functions for basic arithmetic operations (sum, subtract, product, division)
- Switch statement for handling menu options
- Clear and informative output

How to Run the Program:

1. Copy the provided C++ code into a .cpp file
2. Compile the program using a C++ compiler
3. Run the compiled program:
    - On Linux/macOS: ./simple_calculator
    - On Windows: simple_calculator.exe
4. Enter two numbers and an operation choice when prompted

Learning Objectives:

- Understanding basic user input and output
- Using functions for modular programming
- Implementing basic arithmetic operations
- Working with double variables and arithmetic operators

License:

This project is open-source and available for learning purposes. Feel free to use, modify, or contribute.

Contact:

If you have any suggestions or questions, feel free to open an issue or submit a pull request on the GitHub repository!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages