PHP <-> Pascal | Block statement

PHP

{ }

Description

{}
{statement}
{statement statement}

Input

Examples

PHP

Block statement the possible of use:
$y=10;
if ($x>1)
{
  $x=1;
  $y=$y-1;
}
while ($y>1)
{
  $x++;
  $y--;
}
.
Pascal

begin end

Description

begin end;
begin statement end;
begin statement statement end;
Used keywords: end begin

Input

  • statement - code

Examples

Pascal

Block statement the possible of use:
y:=10;
if x>1 then
begin
  x:=1;
  y:=y-1;
end;
while y>1 do
begin
  inc(x);
  dec(y);
end;
Languages: en hu cz sk