Advertisement
Ochkasty_Dino

Practicum2-III-16

Sep 9th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Example
  7. {
  8.     class Program
  9.     {
  10.         static void Main()
  11.         {
  12.             Console.Write("Введите пожалуйста число X=");
  13.             string S1 = Console.ReadLine();
  14.             int Y = int.Parse(S1);
  15.  
  16.             Console.Write("Введите пожалуйста число Y=");
  17.             string S2 = Console.ReadLine();
  18.             int z = int.Parse(S2);
  19.  
  20.             int result = (Z * 10) + ((Y/10)*100 + (Y%10));
  21.             Console.WriteLine(result);
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement