Skip to content

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

License

Notifications You must be signed in to change notification settings

FerrazArthur/calculadora_basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published