Saturday, March 25, 2017

Subtraction Operator

Hi all,

Today I'm going to talk about Subtraction Operator which symbolize by "-". In Java we use this Subtraction Operator for subtraction as well as for symbolize negative values.

Following is an example for usages of Subtraction Operator,

int a = 30;
int b = 10;

int c = a - b;

now the value of c is 20






No comments:

Post a Comment