WAP the use of binary arithmetic operators, relational operators
logical operators, ternary operator and shorthand operator.
Answers
Answered by
1
Answer:
provides many types of operators which can be used according to the need. They are classified based on the functionality they provide. Some of the types are-
1.Arithmetic Operators
2.Unary Operators
3.Assignment Operator
4.Relational Operators
5.Logical Operators
6.Ternary Operator
7.Bitwise Operators
8.Shift Operators
9.instance of operator
10.Precedence and Associativity
11.Interesting Questions
Answered by
1
Answer:
class abc
{
public static void main (String args[ ])
{
int a=7, b=6,c=9;
if ( a>b && a>c)
{
System.out.println ("The largest number ="+a);
}
else if (b>a &&b>c)
{
System.out.println("The largest number ="+b);
}
else
System.out.println("The largest number="+c);
}
}
Similar questions
English,
3 months ago
Business Studies,
3 months ago
Economy,
7 months ago
Math,
7 months ago
Social Sciences,
11 months ago
Computer Science,
11 months ago