Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class ExchangeVarableValues
- {
- static void Main(string[] args)
- {
- int A = 5;
- int B = 10;
- int C;
- Console.WriteLine("Before: \n A = {0}; \n B = {1}:",A,B);
- Console.WriteLine("After:\n A = {0};\n B = {1};",B,A);
- C = A;
- A = B;
- B = C;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment