Give the output of the following program if the value of the variable a is 15.
a=a+b;
b=a* C
iv.
1. if (a>20)
{
System.out.print (“Greater");
}
else
System.out.print (“Not greater");
System.out.print ("Over");
2. if(a>10)
{
System.out.print (“Greater")
else {
System.out.print (“Not greater");
System.out.print ("Over");
}
}
Answers
Answered by
1
Answer:
Give the output of the following program if the value of the variable a is 15. a=a+b; b=a* C iv. 1. if (a>20) { System.out.print (“Greater"); } else System.out.print (“Not greater"); System.out.print ("Over"); 2. if(a>10) { System.out.println (“Greater") else { System.out.print (“Not greater"); System.out.print ("Over"); } }
Similar questions