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

Explain what is the most efficient way to store flag values?

1173


How can you determine the maximum value that a numeric variable can hold?

1151


What is file in c language?

964


Explain the difference between malloc() and calloc() function?

988


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

5403


What is a function simple definition?

1031


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3245


What is break statement?

1059


Which driver is a pure java driver

1532


How can I open files mentioned on the command line, and parse option flags?

1015


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

999


what is reason of your company position's in india no. 1.

2230


Where local variables are stored in c?

957


Write a program to generate random numbers in c?

1048


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2008