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

#inclufe<stdio.h>
Void main()
{
int a[7];
for(i=0;i<=7;i++)
{
printf("Enter the nos");
scanf("%d",&a[i]);
}
for(i=0;i<=7;i++)
{
if(a[i]>a[i+1])
printf("%d",a[i]);
else
if(a[i]<a[i+1])
printf("%d",a[i+]);
else
if(a[i]==a[i+1])
printf("%d",a[i]);
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do the 'c' and 'v' in argc and argv stand for?

1176


List the variables are used for writing doubly linked list program.

2036


I heard that you have to include stdio.h before calling printf. Why?

1071


I have a varargs function which accepts a float parameter?

1052


Write a program to reverse a linked list in c.

1135


What is the best organizational structure?

1123


Can we change the value of static variable in c?

1035


What are the parts of c program?

1103


regarding pointers concept

2046


In a header file whether functions are declared or defined?

1128


Differentiate between a structure and a union.

1292


Difference between macros and inline functions? Can a function be forced as inline?

1278


Do you know pointer in c?

1056


What is cohesion and coupling in c?

1035


Write a program on swapping (100, 50)

1131