Skip to content

nbcamp/calculator-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator CLI

A Tiny Cli Tool that provides very simple arithmetic functions.

Example

[Calculator CLI]

Provides simple arithmetic functions.

- Usage: Enter operater and operand. e.g. +42
- Operators: %, *, +, /, -
- Commands:
    help     Print this message
    reset    Reset result to zero
    exit     Exit this program

Result: 0.0000
» +32

Result: 32.0000
» /2

Result: 16.0000
» +15

Result: 31.0000
» /3

Result: 10.3333
» exit
Goodbye.

Development

Clone this repository and run program to develop

$ swift run

Build

Check build path by adding --show-bin-path option.

Debug

$ swift build # --show-bin-path

Release

$ swift build -c release # --show-bin-path

Release by architectures

$ swift build -c release --arch arm64 --arch x86_64 # --show-bin-path

About

[내일배움캠프] 2주차 - Swift 기초 문법

Resources

Stars

Watchers

Forks

Languages