Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
|= Caching
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { static bool globChanged; public static void Main(string[] args) { globChanged = false; bool tmp = Inspect(); globChanged |= tmp; if (globChanged) Console.WriteLine("Works!"); else Console.WriteLine("Doesn't Work!"); globChanged = false; globChanged |= Inspect(); if (globChanged) Console.WriteLine("Works!"); else Console.WriteLine("Doesn't Work!"); globChanged = false; globChanged = globChanged || Inspect(); if (globChanged) Console.WriteLine("Works!"); else Console.WriteLine("Doesn't Work!"); globChanged = false; globChanged = Inspect() || globChanged; if (globChanged) Console.WriteLine("Works!"); else Console.WriteLine("Doesn't Work!"); } static bool Inspect() { globChanged = true; return false; } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Hello world
Compiler
7. Asynchrony
Dijkstra’s shortest path algorithm
Valid Substring
C# - Integer to Roman
binary hacks
Des encryption
Get missed element in integer collection
Validate or get the check digit of a segment of a Windows 8 / 10 activation installation ID
Please log in to post a comment.