Example2_3 - System.out.println"2 7 ="(2 7...

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

View Full Document Right Arrow Icon
public class Example2_3 { public static void main(String[] args) { System.out.println("2 + 5 = " + (2 + 5)); System.out.println("13 + 89 = " + (13 + 89)); System.out.println("34 - 20 = " + (34 - 20)); System.out.println("45 - 90 = " + (45 - 90));
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("2 * 7 = " + (2 * 7)); System.out.println("5 / 2 = " + (5 / 2)); System.out.println("14 / 7 = " + (14 / 7)); System.out.println("34 % 5 = " + (34 % 5)); System.out.println("4 % 6 = " + (4 % 6)); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online