/calculadora_basic

Using function pointers to implement a calculator with some basic arithmetic operations and make some tests in a range of integers

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Basic calculator

Context

This calculator is a college project for the discipline of programming languages

Instructions to use

  • clone this repository and open terminal inside the folder then type:

    make

  • To execute the calculator

    ./calculadora

Main menu

A - open algebric menu
T - open tests menu
S - exit

Arithmetic operators

prompt user for two double values after he choose a option.

+ - sum two values
- - subtract two values
* - multiply two values
/ - divide two values
V - go back previous menu

Test operators

prompt user for two integer values after he choose a option.
Keep asking until the first integer is smaller than the second.

2 - even
I - odd
P - prime
F - perfect
5 - multiple of 5
+ - positive
V - go back previous menu