9
answers
0
watching
36
views
25 Oct 2019

Write the number of iteration for the following code:

class MyClass{

   public static void main(String args[]){

      int i=10;

      do{

System.out.println(“Welcome to java...”);

           i--;

      }while(i>11);

}}

 

What will be the result if it is done with the for loop?

 

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Get unlimited access
Already have an account? Log in
Get unlimited access
Already have an account? Log in
Get unlimited access
Already have an account? Log in
Get unlimited access
Already have an account? Log in
Get unlimited access
Already have an account? Log in
Get unlimited access
Already have an account? Log in
Get unlimited access
Already have an account? Log in
Get unlimited access
Already have an account? Log in
Hubert Koch
Hubert KochLv2
25 Oct 2019
Get unlimited access
Already have an account? Log in
Start filling in the gaps now
Log in