Subtract two numbers without using minus operator in C#

Hi guy’s,here is the article to Subtract two numbers without using arithmetic operators in c# console application.In the program i am going to use Binary XOR Operator, it is used to copy the bit if it is set in one operand but not both and Binary Left Shift Operator, it is used moved left by the number of
bits specified by the right operand and in last
Binary Ones Complement Operator, it is unary and has the effect of ‘flipping’ bits. inside the program i am going to use while loop to filter the values. let’s see the program.

Output Screen,see below image.

Happy Programming…Thanks

Post Author: adama