Write the Output of the Following Program Code:Char Ch ; Int X=97; Do { Ch=(Char) X; System.Out.Print(Ch + “ ” ); If(X%10 == 0) Break; ++X; }While(X<=100);
Advertisements
Question
Write the output of the following program code:
char ch ;
int x=97;
do
{
ch=(char) x;
System.out.print(ch + “ ” );
if(x%10 == 0)
break;
++x;
}while(x<=100);
One Word/Term Answer
Advertisements
Solution
output: a b c d
shaalaa.com
Is there an error in this question or solution?
