Помогите перевести программу из паскаля в python.

var n,x,d: integer;
begin
writeln ('Введите число N:');
readln(n);
d:=10;
for x:=1 to n do
begin
while d<=x do
d:=d*10;
if x*x mod d = x then
writeln (x,'*',x,'=',x*x);
end;
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.