/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package t1xc; /** * * @author jcmtiernan */ public class T1XC { /** * @param args the command line arguments */ public static void main(String[] args) { int a = 5; int b = a * 2; double c = b * 4 / 7; double d = Math.pow(a, 3); System.out.printf("%6d %6d %9.3f %9.3f\n", a, b, c, d); System.out.printf("%6b %6b %9b %9b\n", (c > a ), (d % (Math.ceil(c)) == 4), ((b >= (c / 5)) && ((d / a) > (b * c)) ), (true || (a > b) )); } }