Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class ExchangeVariables
- {
- static void Main()
- {
- int five = 5;
- int ten = 10;
- Console.WriteLine("At the moment \"five\" is {0} and \"ten\" is {1} \n\n\n" ,five, ten);
- int exchange = five;
- five = ten;
- ten = exchange;
- Console.WriteLine("And now \"five\" is {0} and \"ten\" is {1}", five, ten);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement