We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4386c3f commit 30d7d72Copy full SHA for 30d7d72
Difference of 2 integer without using '-' operator.py
@@ -0,0 +1,6 @@
1
+#WAP to find diffrence of two small integers without using minus(-) operator.
2
+a=int(input("Enter The First Number"))
3
+b=int(input("Enter The Second Number"))
4
+sub=a+(~b)+1
5
+print("Substraction of %d-%d=%d"%(a,b,sub))
6
+input("Press ENTER to exit")
0 commit comments