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
where is available in this mantis toturials?
Where do we need Operator overloading?
how to add a new table with variables and thier values into a imported file uisng proc import?
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
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'.
the systematic access of small computers in a distributed data processing system is referred as?
How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?
Write a program to show polymorphism.
how to remove header and footer in jcl using sort utility
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
how do you generate source code for the automatic generation for receipt number
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.
Code for display the images from drive using vb 6.0?
Any real time example of O2C process from taking order till creating invoice.
what is the diffrence between software and hardware language?