Computer Science, asked by avritti, 10 months ago

Write the output of the following program code:
char ch;
int x = 97;
do
ch = (char) x;
System.out.println(ch + " ");
if (x % 10 ==0)
break;
++X;
while (x <=100);​

Answers

Answered by omksingh55
38

Answer:

a

b

c

d

Explanation:ASCII value of 97=a

Since 97%10 =7

It will not break

And will continue till 100

When X becomes 100 ,

100%10=0 the loop will break

Answered by somalia31
7

Answer:

output

a.

b

c

d

Explanation:

this is the answer

don't write 97, 98, 99, 100 alongside....pls

Similar questions