previous | start | next

Self Check

  1. What is the value of 1729 / 100? Of 1729 % 100?
  2. Why doesn't the following statement compute the average of s1, s2, and s3?
    double average = s1 + s2 + s3 / 3; // Error
  3. What is the value of Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)) in mathematical notation?

previous | start | next