What is the output of this code sequence double a 125 Syste

What is the output of this code sequence? double a = 12.5; System.out.println(a); What is the output of this code sequence? int a = 6; System.out.println(a); What is the output of this code sequence? float a = 13f; System.out.println(a); What is the output of this code sequence? double a = 13/5; System.out.println(a); What is the output of this code sequence? int a = 13/5; System.out.println(a); What is the output of this code sequence? int a = 13 % 5; System.out.println(a); What is the output of this code sequence? int a = 12/6 * 2; System.out.println(a); What is the output of this code sequence? int a = 12/(6 * 2); System.out.print!n(a);

Solution

4. It returns 12.2
5. It returns 6
6. It returns 13
7. It returns 2.6
8. It returns 2
9. It returns 3
10.It returns 4
11.it returns 1

 What is the output of this code sequence? double a = 12.5; System.out.println(a); What is the output of this code sequence? int a = 6; System.out.println(a); W

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site