Iā€™m having trouble with Boolean expression while using classes | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Iā€™m having trouble with Boolean expression while using classes

How do you get/set the Boolean expression with in a class as an attribute or how can I store Boolean in a object in main? This is c# using visual studios

20th Mar 2020, 12:39 PM
Nisha Brown
Nisha Brown - avatar
1 Resposta
+ 1
An example as follows: static void Main() { bool b1; bool b2 = true; b1 = 5 > 4; Console.WriteLine(b1); }
20th Mar 2020, 1:01 PM
JaScript
JaScript - avatar