Computer Science, asked by rudrabaruwala, 4 months ago

Give output
char ch;
int x = 65;
do
{
ch = (char)x;
System.out.print(ch + " ");
if(x%2==0)
break;
++X;
}
while(x<=70);​

Answers

Answered by Oreki
2

Given Snippet:    

    char ch;

    int x = 65;

    do {

        ch = (char) x;

        System.out.print(ch + " ");

        if (x % 2 == 0)

           break;

        ++x;

    }  while (x <= 70);

Output:

  A B

Similar questions