Check if two numbers are equal without using comparison operators | CPP code to check if 2 numbers are same ; Finds if a and b are same ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; void areSame ( int a , int b ) { if ( ! ( a - b ) ) cout << " Same " ; else cout << " Not ▁ Same " ; } int main ( ) { areSame ( 10 , 20 ) ; return 0 ; }