Home »
MCQs »
Scala MCQs
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;
}
- 12
- 12****
- 12*
- None of these
Answer: A) 12