please solve my question today is my online exam it's urgent please solve it..
Attachments:
Answers
Answered by
6
int a=100;
int b=20;
if (a>b)
System.out.println(a);
else
System.out.println(b);
int x=290;
int y=300;
if(x>y)&&(y<100)
System.out.println(x+100);
else if (y>x)||(x<100)
System.out.println(y+100);
else
System.out.println(x+y);
String a="hello";
System.out.println(a*4);
Hope this answer will help you!!❤✌
ADDITIONAL INFORMATION;
LOGICAL OPERATOR- AND - &&(symbol)
LOGICAL OPERATOR- OR - || (symbol)
char - single inverted comma(quotation mark) is used.
String - double inverted comma (quotation mark) is used.
Similar questions