Skip to content

lucifer5094/Cpp-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator in C++

This is a simple command-line calculator program written in C++. It prompts the user to enter two numbers and an operator, then performs the corresponding operation on the numbers. The supported operations are addition, subtraction, multiplication, and division.

How to Use

Compile the program using a C++ compiler.

Run the compiled executable. Follow the prompts to enter two numbers and choose an operator. View the result displayed on the screen.

Supported Operators

Addition (+) Subtraction (-) Multiplication (*) Division (/)

Exiting the Calculator

To exit the calculator, input 'q' when prompted to enter an operator.

Example kotlin Copy code Enter two numbers: 10 5 Enter any operator (+, -, *, /) or 'q' to quit: + Sum is: 15 License This project is licensed under the MIT License. Feel free to modify and distribute it as needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages