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
What are different storage class specifiers in c?
Does * p ++ increment p or what it points to?
Explain how can you be sure that a program follows the ansi c standard?
Why c is called a mid level programming language?
What is structure in c explain with example?
How can I implement a delay, or time a users response, with sub-second resolution?
How to implement a packet in C
How can I manipulate individual bits?
What is the difference between text files and binary files?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Why malloc is faster than calloc?
Define VARIABLE?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Do pointers take up memory?
How can a process change an environment variable in its caller?