Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calculationcollective/vcalculator
https://github.com/calculationcollective/vcalculator
calculator v
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/calculationcollective/vcalculator
- Owner: CalculationCollective
- License: other
- Created: 2023-03-30T20:19:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-30T20:38:23.000Z (over 1 year ago)
- Last Synced: 2023-08-03T01:51:06.931Z (over 1 year ago)
- Topics: calculator, v
- Language: V
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# VCalculator
- [VCalculator](#vcalculator)
- [Install Vlang](#install-vlang)
- [Run the calculator](#run-the-calculator)
- [Use the calculator](#use-the-calculator)## Install Vlang
To install Vlang run the flowing commands.
```shell
git clone https://github.com/vlang/v;
cd v;
make # make.bat on Windows
```## Run the calculator
To run the calculator simply move to the folder containing the `VCalculator.v` file.
and run this command:
```shell
v run VCalculator.v
```## Use the calculator
After executing the calculator you can enter the first number.
```shell
Enter the first number: 5 # 5 is the input
```
Then choose between the calculation functions.
```shell
Choose between:
1) Addition
2) Subtraction
3) Multiplication
4) Division
: 1 # < This is our input
```
We now can enter the second number
```shell
Enter the second number: 2 # 2 is the input
```
Now it should give the right output.
```shell
7 # 7 is the return value
```