summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Listing0809.java
blob: eeeec36e6332b19cb9c7d0c0638c4e429f4f69f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Listing0809.java */

public class Listing0809
{
  public static void main(String[] args)
  {
    double x, y;
    for (x = 0.0; x <= 10.0; x = x + 1.0) {
      y = Math.sqrt(x);
      System.out.println("sqrt("+x+") = "+y);
    }
  }
}