The output of the following block of code is | Scala Question 8

63. The output of the following block of code is -

var myVar = 12; 

print(myVar);

while(myVar <= 10){
    print("*");
    myVar += 2;
}
  1. 12
  2. 12****
  3. 12*
  4. None of these

Answer: A) 12

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.