Question: What values should replace the ? to get the output Greater than class Print { public static void main ( String args [ ] )

What values should replace the ? to get the output "Greater than"
class Print
{
public static void main(String args[])
{
int c =? ;
int a =7*3+ c /2-5;
int d =? ;
int b = d -8+ a %3*11;
if(a < b)
{
System.out.println("Less than");
}
if(a == b)
{
System.out.println("Equal");
}
if(a > b)
{
System.out.println("Greater than");
}
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!