Skip to content

Commit c05d2a3

Browse files
author
Tyler Boyd
committed
Some cleen up
1 parent 089989d commit c05d2a3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

go-cli-calc

1.91 MB
Binary file not shown.

main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ const (
1414
)
1515

1616
const (
17-
usage string = `This program is a calcultor that follows PEMDAS
17+
usage string = `This program is a calculator that follows PEMDAS
1818
1919
Supported Symbols: (, ), ^, *, /, +, -
2020
21-
Usage examlpes:
22-
"4.2+18/(9-3)"
21+
Usage examples:
22+
go-cli-calc 2+2*2
23+
OUTPUT: 6
24+
25+
go-cli-calc "4.2 + 18 / (9 - 3)"
2326
OUTPUT: 7.2
2427
25-
"4+18/(9-3)=7.2"
26-
OUTPUT: TRUE
27-
28-
NOTES
29-
* You only need "" if you have whitespace in your equation
28+
go-cli-calc "(1-.5)+2*9+2"
29+
OUTPUT: 20.5
3030
`
3131
)
3232

0 commit comments

Comments
 (0)