Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace C_Ijun
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- string firstName = "Фамилия";
- string lastName = "Имя";
- string tempName;
- Console.WriteLine($"До: Имя - {firstName}, Фамилия - {lastName}");
- tempName= firstName;
- firstName = lastName;
- lastName = tempName;
- Console.WriteLine($"После: Имя - {firstName}, Фамилия - {lastName}");
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement