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
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?
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
how to add a new table with variables and thier values into a imported file uisng proc import?
What is Negative testing?
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)
how can we maintain the previous version scripts to new version.
how pseudo column works?
what are the topics choosen for jam round for interviews
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.
What r the attributes using in Win Runner?
the systematic access of small computers in a distributed data processing system is referred as?
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
What is the Difference between in memory database and physical database
how do find the user exit for selected feild whatis the process and can u plz explain it
what is the difference between Windows application and Unix application?