1.

The following code has some error(s). Rewrite the correct code underlining all the corrections. Also categorize the loop as Entry / Exit Control Loop.int p p = 14; do; p = p-2; System.out.displayln(p); }while p >= 2

Answer»

int p; 

p = 14; 

do 

p = p-2; 

System.out.println(p); 

}while( p >= 2);



Discussion

No Comment Found

Related InterviewSolutions