start citeste n max=-1 cat timp n>0 { c=n mod 10 daca max