PHP <-> Pascal | Decrement statement

PHP

--

Description

-- var ;

Input

Examples

PHP

Even one example in what situations we can use the operation decrement statement:
$i=10;
do --$i; while ( $i > 0);
do {
  $i++;
  if ($i==5)
    break;
} while ( $i <10);

PHP

Even one example in what situations we can use the operation decrement statement:
do --$i; while ( $i > 0);
$j--;
.
Pascal

dec

Description


Input

Examples

Pascal

Even one example in what situations we can use the operation decrement statement:
i:=10;
repeat dec(i) until not i > 0;
repeat
  inc(i);
  if i=5 then
    break;
until not i <10;

Pascal

Even one example in what situations we can use the operation decrement statement:
repeat dec(i) until not i > 0;
dec(j);
PHP

--

Description

var -- ;

Input

Examples

PHP

Even one example in what situations we can use the operation decrement statement:
$i=10;
do --$i; while ( $i > 0);
do {
  $i++;
  if ($i==5)
    break;
} while ( $i <10);

PHP

Even one example in what situations we can use the operation decrement statement:
do --$i; while ( $i > 0);
$j--;
.
Pascal

dec

Description


Input

Examples

Pascal

Even one example in what situations we can use the operation decrement statement:
i:=10;
repeat dec(i) until not i > 0;
repeat
  inc(i);
  if i=5 then
    break;
until not i <10;

Pascal

Even one example in what situations we can use the operation decrement statement:
repeat dec(i) until not i > 0;
dec(j);
Decrement statement in another programming language:
Differences to:
Languages: en hu cz sk