n,s intreg lungciteste ncat timp n>9 executa s<-0 cat timp n>0 executa s<-s+n%10 n<-n/10 sfarsit cat timp n<-ssfarsit cat timp scrie n