Description
Addition is one of the four primary arithmetic operations. The operator +
(plus) operates on two operands to produce the sum.
Syntax
sum = operand1 + operand2;
Parameters
sum
: variable. Allowed data types: int
, float
, double
, byte
, short
, long
.
operand1
: variable or constant. Allowed data types: int
, float
, double
, byte
, short
, long
.
operand2
: variable or constant. Allowed data types: int
, float
, double
, byte
, short
, long
.