Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- namespace CSharpTest
- {
- class Program
- {
- static void Main(string[] args)
- {
- CultureInfo.CurrentCulture = new CultureInfo("en-US", false);
- int i = 0;
- int j = 5;
- if(i == 1 & Convert.ToBoolean(j = 6))
- Console.WriteLine("Boo!");
- Console.WriteLine(j);
- if (i == 1 && Convert.ToBoolean(j = 7))
- Console.WriteLine("Boo!");
- Console.WriteLine(j);
- if (i == 0 || Convert.ToBoolean(j = -6))
- Console.WriteLine("Boo!");
- Console.WriteLine(j);
- if (i == 1 | Convert.ToBoolean(j = -6))
- Console.WriteLine("Boo!");
- Console.WriteLine(j);
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment