1. Engineering
  2. Computer Science
  3. how many times will quothelloquot print int i0 whileilt5 ...

Question: how many times will quothelloquot print int i0 whileilt5 ...

Question details

How many times will "hello" print?

int i=0;
while(i<5) {
     int n=0;
     if(n>1) {
          System.out.println("hello");
     }
     n++;
     i++;
}
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution