Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- namespace CSLite1
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Console.InputEncoding = Encoding.Unicode;
- Console.OutputEncoding = Encoding.Unicode;
- int variable1 = 32;
- int variable2 = 51;
- Console.WriteLine($"До перестановки: {variable1} и {variable2}.");
- int temp = variable1;
- variable1 = variable2;
- variable2 = temp;
- Console.WriteLine($"После перестановки: {variable1} и {variable2}.");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment