Ad

Friday, July 5, 2013

Program To Add a Two Numbers Without Using Plus Operator in C#.Net

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:

Program To Add  a Two Numbers Without Using Plus Operator in C#.Net
 OutPut:
Program To Add  a Two Numbers Without Using Plus Operator in C#.Net 1

No comments: