Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

difference of two no's with out using - operator

Answer Posted / vignesh1988i

its simple logic , wat i think is to AND these two inputs.

#include<stdio.h>
#include<conio.h>
void main()
{
int n,m;
scanf("%d %d",&m,&n);
if(m>n)
printf("%d",m&n);
else
printf("%d",n&m);
getch();
}

thank u

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the general form of #line preprocessor?

1039


What is meant by high-order and low-order bytes?

1102


what is the significance of static storage class specifier?

2342


plz let me know how to become a telecom protocol tester. thank you.

2239


What is 2 d array in c?

1087


Explain what is a 'locale'?

1129


explain what are pointers?

1080


What is wrong with this program statement?

1085


How a string is stored in c?

1116


How can you pass an array to a function by value?

1178


What is calloc in c?

1189


What is header file in c?

1107


By using C language input a date into it and if it is right?

1132


What is substring in c?

1258


How does free() know explain how much memory to release?

1109