- 3

Can I write multiple expressions || together? What is the output for this code?

31st May 2021, 10:22 AM
يمان أدنا
يمان أدنا - avatar
5 Respuestas
+ 1
The output will be "the values are true"
31st May 2021, 11:48 AM
Eashan Morajkar
Eashan Morajkar - avatar
+ 1
Can you give one example for what you are saying?
31st May 2021, 11:30 AM
Atul [Inactive]
+ 1
int x = 1; int y = 15; int z = 20; if (x>y || y>z || z>x) console.writeLine ("the values are true"); else console.writeLine ("the values are false");
31st May 2021, 11:37 AM
يمان أدنا
يمان أدنا - avatar
0
Question is not clear. You can always see for yourself in the playground
31st May 2021, 10:24 AM
Slick
Slick - avatar
0
Change your print statement into Console.WriteLine();
31st May 2021, 11:42 AM
Atul [Inactive]