public class kkb {
public static void main(String[] args) {
boolean boo=false;
int x=-1;
boo=((x=10)>9)||((x=100)>99);
System.out.println(boo+"hello"+x);
}
}
(2)
public class kkb {
public static void main(String[] args) {
boolean boo=false;
int x=-1;
boo=((x=10)>9)|((x=100)>99);
System.out.println(boo+"hello"+x);
}
}
(3)
public class kkb {
public static void main(String[] args) {
int m=123;
int sum=0,t=100;
while(t>0){
sum=sum+m%10*t;
m=m/10;
t=t/10;
}
System.out.printf("%d",sum);
}
}
(4)
public class kkb { public static void main(String[] args) { int m=0; char ch='A'; switch(ch){ case 9: case 'a':m=m+1; ; break; case 'A':m=m+1; case 66:m=m+1; default:m=m+3; } System.out.println(m); } }