Skip to content

Instantly share code, notes, and snippets.

@tsk-arh
Last active January 4, 2024 12:58
Show Gist options
  • Save tsk-arh/6a9261a56cae4a88fd2359ce660c4400 to your computer and use it in GitHub Desktop.
Save tsk-arh/6a9261a56cae4a88fd2359ce660c4400 to your computer and use it in GitHub Desktop.
ЗАДАНИЕ Перестановка местами значений
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