Computer Applications
Convert the following do…while loop to for loop:
int x = 10;
do
{
x––;
System.out.print(x);
}while (x>=1);
Related Questions
Write the Java expression for (a + b)x.
Evaluate the expression when the value of x = 4:
x *= --x + x++ + xGive the output of the following Character class methods:
(a) Character.toUpperCase ('a')
(b) Character.isLetterOrDigit('#')
Rewrite the following code using the if-else statement:
int m = 400; double ch = (m>300) ? (m / 10.0) * 2 : (m / 20.0) - 2;