Computer Applications
Related Questions
Rewrite the following program segment using while instead of for loop.
int f = 1, i; for(i = 1; i <= 5 ; i++) { f *= i; System.out.println(f); }State the method that
(a) converts a string to a primitive float data type.
(b) determines if the specified character is an uppercase character.
Give the output of the following expression, when a = 6.
a += ++a + a++ + a-- + a-- + --a + ++aPredict the output of the following.
(a) Math.pow(2.5, 2) + Math.ceil(5)
(b) Math.round(2.9) + Math.log(1)