Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _2._Change_variables_values
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- Console.WriteLine("Before:");
- Console.WriteLine("a = " + a);
- Console.WriteLine("b = " + b);
- int c = a;
- a = b;
- b = c;
- Console.WriteLine("After:");
- Console.WriteLine("a = " + a);
- Console.WriteLine("b = " + b);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment