Free Pascal <-> C++ | Decrement statement

Free Pascal

dec

Description


Input

Examples

Free 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;

Free Pascal

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

--

Description

-- var ;

Input

Examples

C++

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);

C++

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

dec

Description


Input

Examples

Free 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;

Free Pascal

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

--

Description

var -- ;

Input

Examples

C++

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);

C++

Even one example in what situations we can use the operation decrement statement:
do --i; while ( i > 0);
j--;
Languages: en hu cz sk