Slide 14
Slide 14 text
Javier Gonzalez-Sanchez | CSE110 | Summer 2020 | 14
Day 5, 6
1. What is the result of 1 % 2 - 3 / 4 * 5 / 6 + 7
2. Is the following correct? If so, What is the result?
1 % 2 - 3 / 4 * 5 / 6 + 7 + “Hello”
3. Is the following correct? If so, What is the result?
”Hello” + 1 % 2 - 3 / 4 * 5 / 6 + 7
4. Is the following correct? If so, What is the result?
float f = 2.5f + 2.5f; System.out.println(f);
5. Is the following correct? If so, What is the result?
System.out.println( Math.pow(5.0,2.0) );