Delphi program that calculates the absolute value of a number

KHADIDJA -  
 PierrotLeFou -

Hello,


a Delphi program that calculates the absolute value of a number (positive or negative) without using the predefined abs function
Example: |-5|= 5, |5|= 5

2 answers

  1. PierrotLeFou
     

    Reread your course on the Delphi language.

    Is there no if in this language?

    0