Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are operators in c?

1077


What are keywords in c with examples?

1147


What is the role of this pointer?

1126


#include { printf("Hello"); } how compile time affects when we add additional header file .

1939


What does the c preprocessor do?

1158


Why do we use main function?

1234


What is a built-in function in C?

1669


Do you know what are the properties of union in c?

1131


What is the difference between declaring a variable and defining a variable?

1341


why wipro wase

2367


What are the different data types in C?

1249


What is a class c rental property?

1144


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

2012


What does malloc () calloc () realloc () free () do?

1103


what do you mean by enumeration constant?

1060