Given the following code, which of these statements are true?
class Main{ // w ww .j a va 2 s . co m public static void main (String args []){ int k = 0; int m = 0; for ( int i = 0; i <= 3; i++){ k++; if ( i == 2){ // line 1 } m++; } System .out.println ( k + ", " + m ); } }
Select 3 options
Correct Options are : A C E
This is a simple loop. All you need to do is execute each statement in your head.