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 the program for maximum of the following numbers?
122,198,290,71,143,325,98

Answer Posted / akhilesh singh

main()
{
int i,j,temp,a[7]={122,198,290,71,143,325,98};
for(i=0;i<=5;i++)
{
for(j=0;j<=6;j++)
{
if(a[j]<a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
printf("%d",a[0]);
}

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why header files are used?

1169


What is table lookup in c?

1152


What are the types of type qualifiers in c?

1141


What is putchar() function?

1223


Write the control statements in C language

1284


In C programming, what command or code can be used to determine if a number of odd or even?

1097


How can a string be converted to a number?

1071


Where does the name "C" come from, anyway?

1219


What do you mean by dynamic memory allocation in c?

1154


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

1161


swap 2 numbers without using third variable?

1177


What is the purpose of sprintf() function?

1189


Which is the memory area not included in C program? give the reason

1999


Can variables be declared anywhere in c?

1151


What is the difference between near, far and huge pointers?

1161