Advertisement
VodVas

Untitled

Aug 15th, 2023
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | Software | 0 0
  1. string name = "Петров";
  2. string surname = "Иван";
  3.  
  4. Console.WriteLine($"Имя {name},фамилия {surname}");
  5.  
  6. string tempName = surname;
  7. surname = name;
  8. name = tempName;
  9.  
  10. Console.WriteLine($"Имя {name},фамилия {surname}");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement