Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CSLight
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string firstVariable = "Вячеслав";
- string secondVariable = "Бугаев";
- Console.WriteLine("До перестановки:");
- Console.WriteLine($"Значение первой переменной: {firstVariable}");
- Console.WriteLine($"Значение второй переменной: {secondVariable}");
- (firstVariable, secondVariable) = (secondVariable, firstVariable);
- Console.WriteLine("\nПосле перестановки:");
- Console.WriteLine($"Значение первой переменной: {firstVariable}");
- Console.WriteLine($"Значение второй переменной: {secondVariable}");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment