program doorFind;
{Find the area of a door}uses crt;
type
 doorType = record
 width : Integer;
 height : Integer;
end;
var
 door : doorType;
begin
 clrscr;
 writeln('Enter the door height');
 readln(door.height);
 writeln('Enter the door width');
 readln(door.width);
 writeln('The door area is ', door.width*door.height);
 readln;
end.
|