SHARE
TWEET

Untitled

a guest Nov 12th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var i, c: integer;
  2. var n: real;
  3. var str, str2: string;
  4.  
  5. begin
  6.   str2 := '';
  7.   read(str);
  8.   for i := length(str) downto 1 do begin
  9.     insert(str[i], str2, length(str) - i + 1);
  10.   end;
  11.   val(str2, n, c);
  12.   writeln('Развернутое число: ', n);
  13.   writeln('Квадрат числа: ', n * n);
  14. end.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top