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 / agalya

#include <stdio.h>
#include <math.h>
void main()
{
int m1,m2,a,b;
clrscr();
printf("Enter the First Number\n");
scanf("%d",&a);
printf("Enter the Second Number\n");
scanf("%d",&b);
m1=max(a,b);
m2=min(a,b);
printf("The Bigest No is==%d\n",m1);
printf("The Smallest No is==%d\n",m1);
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer to pointer in c language?

1159


what is ur strangth & weekness

2440


How can I convert a number to a string?

1201


When should you use a type cast?

1130


What is the collection of communication lines and routers called?

1129


Differentiate between functions getch() and getche().

1058


Which driver is a pure java driver

1631


What math functions are available for integers? For floating point?

1141


What is the use of a semicolon (;) at the end of every program statement?

1518


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1309


how to capitalise first letter of each word in a given string?

1931


What is #define size in c?

1200


What tq means in chat?

1130


What is advantage of pointer in c?

1193


Why string is used in c?

1014