Question 2: What will be the output of the program segment.
a) char x
inta-66;
do
{
x=(char) a;
System.out.println(x + " ");
if(a%10==0)
break;
++a
} while(a<=70);
b) for (i = 0; i<10;i++)
{
if(i==5)
break;
System.out.println(i);
}
c)int a=3;
while (a<=10)
a++;
if(a ==5)
continue;
System.out.println(a);
}
Answers
Answered by
2
Answer:
59
Explanation:
--b=10-1=9
c++=10
+b=10
so
a= --b+c++ +b
or a=9-40-10
Answered by
1
Answer:
sex
sexsexsexsexsexse
Similar questions
Social Sciences,
3 months ago
English,
3 months ago
World Languages,
6 months ago
Math,
1 year ago
Math,
1 year ago
English,
1 year ago