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
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
7
Answer:
output
a.
b
c
d
Explanation:
this is the answer
don't write 97, 98, 99, 100 alongside....pls
Similar questions