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
Write a program to print fibonacci series using recursion?
How to compare array with pointer in c?
What is bubble sort technique in c?
What is the purpose of sprintf?
How can I convert a number to a string?
What is c method?
Explain what is the difference between null and nul?
State the difference between x3 and x[3].
What does 4d mean in c?
What is a example of a variable?
can we have joblib in a proc ?
write a program to print data of 5 five students with structures?
Can a variable be both static and volatile in c?
What is class and object in c?
What is default value of global variable in c?