Computer Science, asked by kavyaRBKKT6020, 3 months ago

Wap to display integer from 1 to 10 except 6 and 9

Answers

Answered by kamalrajatjoshi94
0

Program:-

public class Display

{

public static void main(String args[ ])

{

int a;

System.out.println("The numbers from 1 to 10 except 6 and 9 are:");

for(a=1;a<=10;a++)

{

if(a==6&&a==9)

continue;

System.out.println(a);

}

}

Similar questions