Advertisement
LeRoY_Go

Untitled

May 23rd, 2022
651
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace C_Sharp_Junior
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             string name = "Иванов";
  10.             string surname = "Иван";
  11.             string tempString;
  12.             Console.WriteLine($"{name} {surname}");
  13.             tempString = name;
  14.             name = surname;
  15.             surname = tempString;
  16.             Console.WriteLine($"{name} {surname}");
  17.             Console.ReadKey();
  18.         }
  19.     }
  20. }
Advertisement
RAW Paste Data Copied
Advertisement