Computer Science, asked by srishtimehta512, 7 hours ago

Predict the Output of the following Programs

Question 1

class Abc

{​​

public static void main(String args[])

{​​

int I;

for(i = -1;i<10;i++)

{​​

System.out.println(++i);

}​​

}​​

}​​

Question 2

class Abc2

{​​

public static void main(String args[])

{​​

int i=2,k=1;

while (++i<6)

k *= I;

System.out.println(k);

}​​

}​​








​​

Answers

Answered by mkd5a19
0

Answer:

Predict the Output of the following Programs

Question 1

class Abc

{

public static void main(String args[])

{

int I;

for(i = -1;i<10;i++)

{

System.out.println(++i);

}

}

}

Question 2

class Abc2

{

public static void main(String args[])

{

Similar questions