Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic applications (calculator) #6

Open
araujo88 opened this issue Jul 20, 2022 · 2 comments
Open

Add basic applications (calculator) #6

araujo88 opened this issue Jul 20, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@araujo88
Copy link
Owner

No description provided.

@araujo88 araujo88 added the enhancement New feature or request label Jul 20, 2022
@araujo88 araujo88 self-assigned this Jul 20, 2022
@vinsdragonis
Copy link

Proposal

4 functions to perform simple arithmetic calculations

Proposed changes

  • add(x, y)
  • sub(x, y)
  • mul(x, y)
  • div(x, y)

Files changed

  • /include/math.h
  • /src/math.c

Pull requests have been generated for the 2 files. Please do have a look.

@araujo88
Copy link
Owner Author

The basic arithmetic calculations given by the command line will be parsed in a manner similar to how printf handles a variable number of arguments. For example, an expression like:
1+2*3-5
Will have the tokens +, * and - as well as the numbers parsed into the required operations.
Therefore, I am closing this pull request.

@araujo88 araujo88 reopened this Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants