Skip to content

A C++ calculator that handles two numbers and an operator using else-if logic.

License

Notifications You must be signed in to change notification settings

TimGoTheCreator/Else-if-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C++ License: MIT A simple C++ calculator that supports basic operation: Press Q/q To exit:

Features

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Power (**) — Python-style exponent operator

Usage (G++)

git clone https://github.com/TimGoTheCreator/Else-if-calculator.git
cd Else-if-calculator
g++ main.cpp -o main
./main

Usage (Clang)

git clone https://github.com/TimGoTheCreator/Else-if-calculator.git
cd Else-if-calculator
clang++ main.cpp -o main
./main

Usage (Make)

make run

Example Run:

image

License:

This project is licensed under MIT License: MIT

About

A C++ calculator that handles two numbers and an operator using else-if logic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published