The format of the decrement statement is:
expression -- ;
It is a statement in which a single expression is followed by the postfix -- operator and a semicolon.
Decreases the value of the instance returned by the expression by 1.
It is an expression that returns an instance that is decremented.
The returned instance must be an int, long, or real class.
Postfix -- operator. indicates that it is an decrement statement.
The end of a decrement statement is represented by a semicolon.
open method void someMethod()
var1 = 10;
var1--; // var1 is 9.