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
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
English,
4 hours ago