citeste n natural
suma_impare <- 0
cat timp (n > 0) executa
daca (n%2==1) suma_impare <- suma_impare + n%10
n <- n/10
scrie suma_impare
citeste n natural
contor_pare <- 0
cat timp (n > 0) executa
daca (n%2==0) contor_pare <- contor_pare + 1
n <- n/10
scrie contor_pare
citeste n natural
nule <- 0
cat timp (n > 0) executa
daca (n%10==0) nule <- nule + 1
n <- n/10
scrie nule