aboutsummaryrefslogtreecommitdiff
path: root/challenge-273/conor-hoekstra/bqn/ch-1.bqn
blob: 01c89548c51988ef1608d4c2139c26087b9d33c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# For up to date code:
# https://github.com/codereport/bqn-code/blob/main/pwc/273-1.bqn

Round  •Import "../lib/math.bqn"

Percentage  (Round 100×+´÷≠)=

# Tests
•Show      "perl" Percentage 'e' # 25
•Show      "java" Percentage 'a' # 50
•Show    "python" Percentage 'm' # 0
•Show       "ada" Percentage 'a' # 67
•Show "ballerina" Percentage 'l' # 22
•Show  "analitik" Percentage 'k' # 13