Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
21
Task/Price-fraction/EasyLang/price-fraction.easy
Normal file
21
Task/Price-fraction/EasyLang/price-fraction.easy
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
n[] = [ 10 18 26 32 38 44 50 54 58 62 66 70 74 78 82 86 90 94 98 100 ]
|
||||
func conv p .
|
||||
cat = (p - 1) div 5 + 1
|
||||
return n[cat]
|
||||
.
|
||||
for in = 5 step 5 to 100
|
||||
if in = 100
|
||||
in$ = "1.00"
|
||||
elif in < 10
|
||||
in$ = "0.0" & in
|
||||
else
|
||||
in$ = "0." & in
|
||||
.
|
||||
out = conv in
|
||||
if out = 100
|
||||
out$ = "1.00"
|
||||
else
|
||||
out$ = "0." & out
|
||||
.
|
||||
print in$ & " -> " & out$
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue