Computer Science, asked by nandysunanda80, 6 months ago

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 PrachiMadhvi
2

Answer:

59

Explanation:

--b=10-1=9

c++=10

+b=10

so

a= --b+c++ +b

or a=9-40-10

Answered by tpranav742007
1

Answer:

sex

sexsexsexsexsexse

Similar questions