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

where is available in this mantis toturials?

1822


Where do we need Operator overloading?

867


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

1661


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1854


In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.

2051


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

2964


How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?

1719


Write a program to show polymorphism.

860


how to remove header and footer in jcl using sort utility

5337


Suppose server object is not loaded into the memory, and the client request for it , what will happen?

2436


how do you generate source code for the automatic generation for receipt number

4219


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box. eg: 3 box contain stick as:1,1,1. if u take 1 stick from 3rd numbred box you will any how win the match.

2622


Code for display the images from drive using vb 6.0?

4676


Any real time example of O2C process from taking order till creating invoice.

2104


what is the diffrence between software and hardware language?

2049