C+: #include using namespace std; int count (unsigned int n) { int k=0; while (n! =0) {+k; n/=10; } return k; }bool plndr (unsigned int n) { int k=1; unsigned int m=n,c=0; for (int i=1; i <= count (n) -1; i+) k*=10; while (m! =0) { c+=m%10*k; k/=10; m/=10; } if (c=n) return true; else return false; }int main () { unsigned int n; cout <<"N="; cin >>n; while (! plndr (n) {+n; } cout <<"Pirog gotov! Time: " <0 do begin inc (k); n: =n div 10; end; count: =k; end; function plndr (n: longint): boolean; var i: integer; k,m,c: longint; begin k: =1; m: =n; c: =0; for i: =1 to count (n) -1 do k: =k*10; while m<>0 do begin c: =c+(m mod 10)*k; k: =k div 10; m: =m div 10; end; if c=n then plndr: =true else plndr: =false; end; begin write ('N='); readln (n); while (not plndr (n) do inc (n); writeln ('Pirog gotov! Time: ',n); readln; end.