https://github.com/arkenidar/consoleapp-operators
C# operators and text parsing exercise
https://github.com/arkenidar/consoleapp-operators
algorithm cli cs dhtml easy-to-understand html js naive php ts
Last synced: about 1 month ago
JSON representation
C# operators and text parsing exercise
- Host: GitHub
- URL: https://github.com/arkenidar/consoleapp-operators
- Owner: arkenidar
- Created: 2024-12-11T20:46:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-25T12:10:48.000Z (over 1 year ago)
- Last Synced: 2025-10-11T19:34:52.357Z (8 months ago)
- Topics: algorithm, cli, cs, dhtml, easy-to-understand, html, js, naive, php, ts
- Language: C#
- Homepage: https://arkenidar.github.io/ConsoleApp-Operators/
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# examples of supported calculations requested as formulas
- 3 + 2
- 3 / 2
- 3 % 2
- -4 + 2 * 3
- -1 * ( 5 + 3 + 1 )
- 3 * ( sqrt 4 )
- ( sqrt ( ( 3 ^ 2 ) + ( 4 ^ 2 ) ) )
# currently supported operators
- if (word == "+" || word == "-" || word == "*" || word == "/" || word == "^" || word == "%" || word == "sqrt")
- "binary" means 2 operands for the operator
- \+ summation (binary)
- \- subtraction (binary)
- \* multiplication (binary)
- / division (binary)
- % modulo (binary)
- ^ exponentiation (binary)
- sqrt square root (unary)
- "unary" means 1 operand for the operator