0

error in the question

namespace SoloLearn { class Program { static void Main(string[] args) { bool a=true; bool b=true; bool c=false; Console.WriteLine ((a&&b)||c); } } }

28th Aug 2016, 12:41 AM
Stefano Gandolfo
6 Answers
+ 1
Its valid.
31st Aug 2016, 2:08 PM
LeParadoxHD | YouTube
LeParadoxHD | YouTube - avatar
0
if(a && b) Console.WriteLine( a, b); else Console.WriteLine(c);
28th Aug 2016, 6:21 PM
Andreas BeEm Kvist
Andreas BeEm Kvist - avatar
0
the question in the quiz is as in my example. so the answer is wrong bit you need to pick it to ass the test.
28th Aug 2016, 7:05 PM
Stefano Gandolfo
0
What question is it?
28th Aug 2016, 7:10 PM
Andreas BeEm Kvist
Andreas BeEm Kvist - avatar
0
that the code is true only if c is false. while it can be true also for c = false just needs a and b to be true.
28th Aug 2016, 7:55 PM
Stefano Gandolfo
0
code is true
30th Aug 2016, 1:09 PM
Ivelin Dinev
Ivelin Dinev - avatar