SHARE
TWEET

1.III.12

Serby__ Sep 16th, 2019 (edited) 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.Write("Введите X=");
  10.             int n = int.Parse(Console.ReadLine());
  11.            
  12.             int a = 0;
  13.             while(n != 0)
  14.             {
  15.                 a *= 10;
  16.                 a += n % 10;
  17.                 n = n / 10;
  18.                
  19.             }
  20.             int b = 0;
  21.             n = a;
  22.             while (n != 0)
  23.                 {
  24.                     b *= 10;
  25.                     b += n % 10;
  26.                     n = n / 10;
  27.  
  28.                 }
  29.             Console.Write("Введите Y=");
  30.             Console.Write(a);
  31.             Console.Write("\n Введите X=");
  32.             Console.Write(b);
  33.             Console.ReadLine();
  34.  
  35.  
  36.         }
  37.     }
  38. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top