Tuesday, 31 October 2017

java output problems



Question 05
                 Show the output of the following code:
public class Test {
public static void main(String[] args) {
System.out.println("3.5 * 4 / 2 – 2.5 is ");
System.out.println(3.5 * 4 / 2 2.5);
}
}
Output
         3.5 * 4 / 2 – 2.5 is
         4. 5

No comments:

Post a Comment