n-100 while (n> 10) n-T/10; System.out.printin(n); How many time the loop is executed and what is the output?

Question:
n-100
while (n> 10)
n-T/10;
System.out.printin(n);

How many time the loop is executed and what is the output?

1.Loop is executed 2 times and the output is 100

2.Loop is executed 3 times and the output is 10

3.Loop is executed 1 times and the output is 10.

Posted Date:-2022-01-17 11:20:00


More MCQS Questions and answers

Search
Olete Team
Online Exam Test Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Test website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!