https://github.com/calculationcollective/hccalculator
https://github.com/calculationcollective/hccalculator
calculator holyc
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/calculationcollective/hccalculator
- Owner: CalculationCollective
- License: other
- Created: 2023-01-20T17:51:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-21T12:52:10.000Z (over 2 years ago)
- Last Synced: 2025-01-08T16:08:01.895Z (6 months ago)
- Topics: calculator, holyc
- Language: HolyC
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# HCCalculator
- [HCCalculator](#hccalculator)
- [Set-up HolyC](#set-up-holyc)
- [Execute the calculator](#execute-the-calculator)
- [Use the calculator](#use-the-calculator)## Set-Up HolyC
To my knowledge the only fully working HolyC compiler exists in TempleOS.
### Installing TempleOS
The `.ISO` can be downloaded from the official website [TempleOS](https://templeos.org/) which can be installed in your favorite virtual machine.## Execute the calculator
To execute the program type this into the TempleOS console.
```bash
#include "HCCalculator.HC"
```## Use the calculator
After executing the calculator you can enter the first number.
```bash
Enter first number: 5 # 5 is the input
```
Then choose between the calculation functions.
```bash
Choose between:
1) Addition
2) Subtraction
3) Multiplication
4) Division
1 # < This is our input
```
We now can enter the second number
```bash
Enter second number: 2 # 2 is the input
```
Now it should give the right output.
```bash
7 # 7 is the return value
```