Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. class ExchangeVariables
  5. {
  6. static void Main()
  7. {
  8.  
  9. int five = 5;
  10. int ten = 10;
  11. Console.WriteLine("At the moment \"five\" is {0} and \"ten\" is {1} \n\n\n" ,five, ten);
  12.  
  13. int exchange = five;
  14. five = ten;
  15. ten = exchange;
  16.  
  17. Console.WriteLine("And now \"five\" is {0} and \"ten\" is {1}", five, ten);
  18.  
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement