next up previous
Next: Ali? Up: Približek Previous: Kaj?

Kako?

#define sqr(x) x*x
float Pribl_dva_pi() {
  int Sn;

  n= 2;     /* zacetni priblizek Si je 2-kotnik*/
  Sn = 4 ;
  do {
    s = sqrt(2 - sqrt(4 - sqr(Sn)(n)));
    n = 2*n ;
    Sn = 2*Sn;
  } while (getch()==´d´);
  return Sn;
} /* Pribl_dva_pi */



Andrej Brodnik (Andy)
Fri Jan 9 14:21:53 MET 1998