Last active
June 23, 2025 16:19
-
-
Save Semenov89/768509ef13943b3db95043e7179ff88b to your computer and use it in GitHub Desktop.
HomeWork4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace HomeWork4 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string name = "Петров"; | |
string surname = "Иван"; | |
string clipboard; | |
Console.WriteLine($"Имя - {name}, фамилия - {surname} "); | |
clipboard = name; | |
name = surname; | |
surname = clipboard; | |
Console.WriteLine($"Имя - {name}, фамилия - {surname} "); | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment