Advertisement
IGRODELOFF

Task15

Mar 18th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 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 Task15
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string firstName = "Шадрин";
  14.             string surname = "Илья";
  15.             string buffer = "";
  16.  
  17.             Console.WriteLine("Ваше имя - " + firstName + ", ваша фамилия - " + surname);
  18.  
  19.             buffer = firstName;
  20.             firstName = surname;
  21.             surname = buffer;
  22.  
  23.             Console.WriteLine("Ваше имя - " + firstName + ", ваша фамилия - " + surname);
  24.         }
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement