I am trying to create a for loops in C# to do all possible tests of 3 bool variables, but I can’t figure out how to do it the something along the lines of ( a && b ) || c if a is True and b and c are False the whole statement would equal false.
I am trying to create a for loops in C# to do all possible
Share
Not sure if this is what you want, but with nested
foreach, you can do this:Or in a style preferred by a comment: