1 /* 2 * Practice with writing expressions. 3 */ 4 5 public class ExpressionsThing { 6 public static void main(String[] args) { 7 double one = 3.14 * 5 + 5; 8 System.out.println("one = " + one); 9 double two = 3.41 * (5 + 5); 10 System.out.println("two = " + two); 11 double three = (3.14 * (5 + 5)); 12 System.out.println("three = " + three); 13 int four = (2*3); 14 System.out.println("four = " + four); 15 double five = ((1/2)*35); 16 System.out.println("five = " + five); 17 double six = ((1/3) * 65); 18 System.out.println("six = " + six); 19 double seven = (((1/2)*35)+((1/3)*65)); 20 System.out.println("seven = "+ seven); 21 double eight = (3.14 * (11.3* 11.3)); 22 System.out.println("eight = " + eight); 23 double nine = (27.7 * 27.7); 24 System.out.println("nine = " + nine); 25 double ten = ((3.14 * (11.3* 11.3) + (27.7 * 27.7))/2); 26 System.out.println("ten = " + ten); 27 double eleven = (0.17 * 243.5); 28 System.out.println("eleven = " + eleven); 29 int twelve = (3/3); 30 System.out.println("twelve = " + twelve); 31 int thirteen = ((4 * 2) - 7); 32 System.out.println("thirteen = " + thirteen); 33 int fourteen = (7-((9*1)/3)); 34 System.out.println("fourteen = " + fourteen); 35 int fifteen = ((((8*6)+2)/(2))*(1/4)); 36 System.out.println("fifteen = " + fifteen); 37 38 39 40 41 } 42 }