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 a program on c(or)c++(or)java language i.e if i have 5
numbers like (10,24,3,9,15) i want to display highest number
from these numbers

Answer Posted / bhavesh gharat

#includ <conio.h>
#include <stdio.h>

void main()
{
int a[]={10,24,3,9,15};

int temp=a[0];

for(int i=1;i<a.length;i++)
{
if(temp<a[i])
{
temp=a[i];
}
}
printf(" higest no="+temp);
}

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?

1974


could u please also write an example of a code that involves instances from an abstract class just as u did for interfaces because u said it could also work which i really doubt. thanks

2109


how to add a new table with variables and thier values into a imported file uisng proc import?

1892


What is Negative testing?

2122


Display names and numbers of employees who have 5 years or more experience and  salary less than Rs.15000 using array of structures (name, number, experience and  salary)

4740


how can we maintain the previous version scripts to new version.

1934


how pseudo column works?

2185


what are the topics choosen for jam round for interviews

1652


When we have two versions of the dot net installed how does the compiler know which version of DLL it has to select to an application.

1903


What r the attributes using in Win Runner?

2398


the systematic access of small computers in a distributed data processing system is referred as?

3223


I need to fetch all rows from the table based one field value in the table and later do a condition check if the condition is true I will have to move all the rows present in the data base to output file one else if the condition is not satisfied then move all the records of that field value into another file .Please let me know how to do that

2152


What is the Difference between in memory database and physical database

2586


how do find the user exit for selected feild whatis the process and can u plz explain it

2137


what is the difference between Windows application and Unix application?

2634