Monday, December 10, 2007

How to work with Abs by example

How to work with Abs by example

To work with Abs by example

Example:

program Welcome;

uses

WinCrt;

var

r:integer;

t:real;

begin

r:=Abs(-100);

t:=Abs(-1.2);

Write(r,t);

end.

Output:

How to work with Abs functions

How to work with Abs functions

To work with Abs functions

Description:

Returns the absolute value of the argument.

Declaration:

Abs(x);

How to build the project

How to build the project

To build the project

Step 1

To build the project, the first thing you need to do is to use the mouse to open the Compile menu and then click the Build command.

Step 2

Next, you could see that the program contains no errors.

How to make the project

How to make the project

To make the project

Step 1

If you wish to make the project, first, you need to use the mouse to open the Compile menu and then click the Make command.

Step 2

Next, you can see that the program has no errors.