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...

biggest of two no's with out using if condition statement

Answer Posted / partheeban

void main()
{
float i,j;
int a;
printf("Enter two numbers : ");
scanf("%f%f",&i&j);
a=i/j;
if(a)
printf("%f is greater",i);
else
printf("%f is greater",j);
}

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between main and void main?

1129


why wipro wase

2264


Explain what header files do I need in order to define the standard library functions I use?

1130


What are the features of c languages?

1041


What are reserved words with a programming language?

1069


What is logical error?

1070


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

983


What is zero based addressing?

1121


Why is c called "mother" language?

1238


Can we declare function inside main?

957


There seem to be a few missing operators ..

1011


What is formal argument?

1099


Can a variable be both constant and volatile?

1060


Can math operations be performed on a void pointer?

1002


Can a pointer be static?

1032