Kurso de Raku / Progresinta / Operatoroj / Uzant-difinitaj operatoroj / Exercises
Procent-de operatoro
Problemo
Difinu infiksan operatoron percent-of tiel, ke la
esprimo $p percent-of $whole redonu $p
procentojn de $whole. Ekzemple,
20 percent-of 150 estas 30.
Uzu la operatoron por presi 20 percent-of 150.
Ekzemplo
La programo presas:
30