Advertisement
Legiomax

C#_1_lesson_shift

Jan 2nd, 2024 (edited)
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | Software | 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 C_Ijun
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string firstName = "Фамилия";
  14.             string lastName = "Имя";
  15.             string tempName;
  16.             Console.WriteLine($"До: Имя - {firstName}, Фамилия - {lastName}");
  17.             tempName= firstName;
  18.             firstName = lastName;
  19.             lastName = tempName;
  20.             Console.WriteLine($"После: Имя - {firstName}, Фамилия - {lastName}");
  21.             Console.ReadLine();
  22.         }
  23.     }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement