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
Explain what is the most efficient way to store flag values?
How can you determine the maximum value that a numeric variable can hold?
What is file in c language?
Explain the difference between malloc() and calloc() function?
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
What is a function simple definition?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is break statement?
Which driver is a pure java driver
How can I open files mentioned on the command line, and parse option flags?
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
what is reason of your company position's in india no. 1.
Where local variables are stored in c?
Write a program to generate random numbers in c?
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.