summaryrefslogtreecommitdiffstats
path: root/contrib/bc/Test/sqrt1.b
blob: c3ca2698fcc89e47b3c66ba9b70ad9f71eccd4da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
for (j=0; j<10; j++) {
  a = .9;
  b = .9+j;
  scale = 2;
  for (i=0; i<90; i++) {
    scale += 1;
    a /= 10;
    b += a;
    x = sqrt(b);
  }
  x;
}
quit
OpenPOWER on IntegriCloud