Sie sind auf Seite 1von 1

Program numarcifre; Var x,nr,nrcif:integer; Begin Write('Dati x='); Readln(x); nrcif:=0; If x=0 then nrcif:=1 Else Begin While

x<>0 do Begin nrcif:=nrcif+1; x:=x div 10; End; End; Writeln('Numarul dat are ',nrcif,' cifre.'); Readln End.

Das könnte Ihnen auch gefallen