The TransCompilator

Solved LeetCode program · 243 of 1,000

#0326 · Power of Three

Easy Math chunk-05.md

Original English source

The number is 27. The value is number.
Repeat while value modulo 3 is 0.
Set value to value divided by 3.

If value is 1, show true, otherwise show false.

Open in Playground Browse all 1,000 problems

Expected stdout

true