Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите X=");
- int n = int.Parse(Console.ReadLine());
- int a = 0;
- while(n != 0)
- {
- a *= 10;
- a += n % 10;
- n = n / 10;
- }
- int b = 0;
- n = a;
- while (n != 0)
- {
- b *= 10;
- b += n % 10;
- n = n / 10;
- }
- Console.Write("Введите Y=");
- Console.Write(a);
- Console.Write("\n Введите X=");
- Console.Write(b);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement