Имеется код написанный на паскале, необходимо перевести его питон.

var
k,n:longint;
begin
readln(k);
while k mod 10=0 do
k:=k div 10;
while k>0 do
begin
if k mod 10=0 then inc(n);
k:=k div 10;
end;
writeln(n);
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.