Term of the Moment

cable modem


Look Up Another Term


Definition: Modula-2


(MODUlar LAnguage-2) An enhanced version of Pascal introduced in 1979 by Swiss professor Nicklaus Wirth, creator of Pascal. It supports separate compilation of modules, allowing it to be used for large projects. The following example changes Fahrenheit to Celsius:

      module FahrToCent;
   from InOut import ReadReal,WriteReal,
   WriteString,WriteLn;
   var Fahr:real;
   begin
   WriteString("Enter Fahrenheit ");
   ReadReal(Fahr);
   WriteLn;
   WriteString("Celsius is ");
   WriteReal((Fahr - 32) * 5 / 9);
      end  FahrToCent