What will be the output of the following C# code? [code] static void Main(string[] args) { int a = 15, b = 10, c = 1; if (Convert.To

Duyên Trương

New member
What will be the output of the following C# code?
Code:
 static void Main(string[] args)
 {
     int a = 15, b = 10, c = 1;
     if (Convert.ToBoolean(a) && (b > c))
     {
         Console.WriteLine("cquestionbank");
     }
     else
     {
         break;
     }
 }
A. cquestionbank
B. It will print nothing
C. Compile time error
D. Run time error
 

Tìm kiếm

Back
Top