Overview:
In this article i would like to publish an article related to "Addition a Two Numbers Without Using Plus Operator".
Description:
Addition of Two Numbers Without Using plus Operator.It Can be possible with an complement operator which one type of logical operator that is available in majority of higher level languages.It can be denoted as '~' .
Analogy:
~a=-b+1
so, using this we can achieve
a+b=a-~b-1
Program:
OutPut:
In this article i would like to publish an article related to "Addition a Two Numbers Without Using Plus Operator".
Description:
Addition of Two Numbers Without Using plus Operator.It Can be possible with an complement operator which one type of logical operator that is available in majority of higher level languages.It can be denoted as '~' .
Analogy:
~a=-b+1
so, using this we can achieve
a+b=a-~b-1
Program:
OutPut:
No comments:
Post a Comment