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

/// Using C++

#include<iostream.h>
#include<conio.h>

int main(){
int arr[]={10,24,3,9,15};
int Max=arr[0];

for(int i=1; i<5; i++)
if(Max < arr[i]){
Max = arr[i];

cout<<"Higest number is = " <<Max;
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hoe to data grid use in sql server 2000?

1599


what is programmable BIST in today ic design

1645


1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END

2357


how to generate dsnless connectivity in j2ee

1527


they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?

1454






WHAT IS MAIN IMPORTANT THING IN SOFTWARE?

1720


What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?

1779


Delta 5 weight scale not connect with oracle application what i can do?

1807


1) How can u create the table?

1375


why we use mantis? what u mean mantis in IT trends? addvantages of mantis?

1738


how to add Servlet-api.jar file into eclipse 3.3.2 ?

4054


how to convert hashmap to arraylist with iteration

1196


Explain with examples any 2 features of OOPS.

633


define profiler???

1606


what is session state?

1524