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

can anyone please tell about the nested interrupts?

2086


What is a pointer in c?

1460


How can I handle floating-point exceptions gracefully?

1126


What is the difference between array and pointer?

979


What is static and auto variables in c?

1038


Explain 'far' and 'near' pointers in c.

1103


why we wont use '&' sing in aceesing the string using scanf

2333


Is boolean a datatype in c?

1027


Can a function argument have default value?

1112


Why do we use null pointer?

1015


What is the difference between if else and switchstatement

1882


Is c is a low level language?

1088


plz let me know how to become a telecom protocol tester. thank you.

2161


Can you add pointers together? Why would you?

1091


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1224