ex22.pp 267 B

123456789101112131415
  1. Program Example22;
  2. { Program to demonstrate the log2 function. }
  3. Uses math;
  4. begin
  5. Writeln(Log2(2):8:4);
  6. Writeln(Log2(4):8:4);
  7. Writeln(Log2(8):8:4);
  8. Writeln(Log2(1):8:4);
  9. Writeln(Log2(0.5):8:4);
  10. Writeln(Log2(0.25):8:4);
  11. Writeln(Log2(0.125):8:4);
  12. end.