sqr

Pascalzim

sqr

Retorna o quadrado do argumento.

Sintaxe


function sqr ( x : < integer, real > ): < integer, real > ;



Exemplo


Program PascalZIM ;

  begin

    writeln( 'O quadrado de 5 = ', sqr(5) ) ;

    writeln( 'A raiz quadrada de 2 = ', sqrt(2.0) ) ;

  end.


Created with the Freeware Edition of HelpNDoc: Full featured Help generator