Read the integer $P$
from input.
Print the opening bracket ($\texttt{[}$
). Then print $P/10$
(integer division) plus characters ($\texttt{+}$
), followed by $10-(P/10)$
period characters ($\texttt{.}$
). Next, print the closing bracket ($\texttt{]}$
). Finally print the percentage rounded down to nearest integer.
For example, when $P = 62.3$
, you will print $P/10 = 6$
plus characters, followed by $10-(P/10) = 4$
period characters. Finally print $62\%$