Computer Science, asked by triparnaghosh58, 7 months ago

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 deviranjana247
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