Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //Swap value between two variables
  2. int a = 5, b = 10;
  3. int temp = a;
  4. a = b;
  5. b = temp;
  6.  
  7. //Output message 3 times
  8. for(int i = 0; i <= 3; i++)
  9. Console.WriteLine("Hello");
  10.  
  11. //Output message if condition is true string
  12. str = string.Empty;
  13. if(str == string.Empty)
  14. Console.WriteLine("str is empty");
Add Comment
Please, Sign In to add comment