You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
508 B

package main
import (
"github.com/01-edu/z01"
)
func main() {
args := []string{
"1 2 * 3 * 4 +",
"3 1 2 * * 4 %",
"5 10 9 / - 50 *",
"21 3 2 % 2 3 2 *",
"1 2 3 4 +",
"324 + 1 - 23 ",
"32 / 22",
"11 22 +",
"23491234 102030932 -",
"123 2222 /",
"299 255 %",
"15 76 *",
"88 67 dks -",
" 1 3 * 2 -",
}
for _, v := range args {
z01.ChallengeMain("rpncalc", v)
}
z01.ChallengeMain("rpncalc")
z01.ChallengeMain("rpncalc", "1 2 * 3 * 4 +", "10 33 - 12 %")
}