Last active
January 4, 2024 12:58
-
-
Save tsk-arh/6a9261a56cae4a88fd2359ce660c4400 to your computer and use it in GitHub Desktop.
ЗАДАНИЕ Перестановка местами значений
This file contains 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; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace junior1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string name = "Иванов"; | |
string family = "Петр"; | |
Console.WriteLine($"Имя = {name} \nФамилия = {family}"); | |
string temporaryStorage; | |
temporaryStorage = name; | |
name = family; | |
family = temporaryStorage; | |
Console.WriteLine($"\nИмя = {name} \nФамилия = {family}"); | |
Console.ReadLine(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment