Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Swap value between two variables
- int a = 5, b = 10;
- int temp = a;
- a = b;
- b = temp;
- //Output message 3 times
- for(int i = 0; i <= 3; i++)
- Console.WriteLine("Hello");
- //Output message if condition is true string
- str = string.Empty;
- if(str == string.Empty)
- Console.WriteLine("str is empty");
Add Comment
Please, Sign In to add comment