-
-
Save GregTrevellick/8b28b81f48ccb7f2376f0268f3292155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| Console.WriteLine("Hello World"); | |
| var mixed = new List<bool> {true, false, true, false}; | |
| var trues = new List<bool> {true, true, true}; | |
| var m1 = true; | |
| var t1 = true; | |
| foreach (var m in mixed) | |
| { | |
| m1 &= m; | |
| } | |
| foreach (var t in trues) | |
| { | |
| t1 &= t; | |
| } | |
| Console.WriteLine(m1); | |
| Console.WriteLine(t1); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment