Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 907 Bytes

File metadata and controls

44 lines (31 loc) · 907 Bytes

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