write a program to compare 2 numbers without using logical
operators?
Answer Posted / r.aruna
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
int b;
clrscr();
printf("enter the a value=");
scanf("%d",&a);
printf("enter the b value=");
scanf("%d",&b);
if(a==b)
{
printf("a is greater");
}
else
{
printf("b is greater");
}
getch();
}
| Is This Answer Correct ? | 4 Yes | 15 No |
Post New Answer View All Answers
What are operators in c?
What are keywords in c with examples?
What is the role of this pointer?
#include
What does the c preprocessor do?
Why do we use main function?
What is a built-in function in C?
Do you know what are the properties of union in c?
What is the difference between declaring a variable and defining a variable?
why wipro wase
What are the different data types in C?
What is a class c rental property?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What does malloc () calloc () realloc () free () do?
what do you mean by enumeration constant?