Computer Science, asked by DasariJahnavi, 1 year ago

rewrite the following using for loop

Attachments:

Answers

Answered by nancyyy
2
for(int a=1,b=1;b<=a;b++;a++)
{
System.out.println(a);
System.out.println(b);
}

DasariJahnavi: hey u didn't see System. out. println(b);
nancyyy: yeah...thanks for telling:-)
DasariJahnavi: edit it
nancyyy: edited already
DasariJahnavi: oh l didn't see sry
Similar questions