Advertisement
12Vitaly

27

Aug 10th, 2022 (edited)
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 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.  
  7. namespace CSLight
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string name = "Ivanov";
  14.             string surname = "Andrey";
  15.             string exchange;
  16.  
  17.             Console.WriteLine($"Ваше имя {name} ваша фамилия {surname}");
  18.  
  19.             exchange = surname;
  20.             surname = name;
  21.             name = exchange;
  22.  
  23.             Console.WriteLine($"Ваше имя {name} ваша фамилия {surname}");
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement