Check01D - x = 1.0 - 2.0 * y / z; x x =

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

View Full Document Right Arrow Icon
public class Check01D { public static void main(String[] args) { double x, y, z; d z = 1.0 - 'A' / 2.0 + 1.0 % 2.0; y = 2.0 - z * z / 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: x = 1.0 - 2.0 * y / z; x x = Math.round(x*(double)100)/(double)100; x System.out.println("The value of x is: "+x); } }...
View Full Document

Ask a homework question - tutors are online