Computer Science, asked by samparaprasadp, 10 months ago

write the following code by using while loop: for(k=501;k<=521;k=k+2)
{
system.out.println("%"+k);
}​

Answers

Answered by najeebfarhan6345
2

Answer:

int k=501;

while(k<=521){

System.out.println("%"+k);

k+=2;

}

Similar questions