Example2_4 - System.out.println("5.0 % 2.0 =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
i public class Example2_4 { public static void main(String[] args) { System.out.println("5.0 + 3.5 = " + (5.0 + 3.5)); System.out.println("3.0 + 9.4 = " + (3.0 + 9.4)); System.out.println("16.4 - 5.2 = " + (16.4 - 5.2)); System.out.println("4.2 * 2.5 = " + (4.2 * 2.5)); System.out.println("5.0 / 2.0 = " + (5.0 / 2.0));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("5.0 % 2.0 = " + (5.0 % 2.0)); System.out.println("34.5 / 6.0 = " + (34.5 / 6.0)); System.out.println("34.5 % 6.0 = " + (34.5 % 6.0)); System.out.println("34.5 / 6.5 = " + (34.5 / 6.5)); System.out.println("34.5 % 6.5 = " + (34.5 % 6.5)); } }...
View Full Document

Ask a homework question - tutors are online