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
How can I trap or ignore keyboard interrupts like control-c?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Why do we use main function?
What is sizeof int?
What is an auto keyword in c?
If the size of int data type is two bytes, what is the range of signed int data type?
What is "Duff's Device"?
How macro execution is faster than function ?
What are directives in c?
i have a written test for microland please give me test pattern
What is the code in while loop that returns the output of given code?
What is array within structure?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is a pointer value and address in c?