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
hoe to data grid use in sql server 2000?
what is programmable BIST in today ic design
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
how to generate dsnless connectivity in j2ee
they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
Delta 5 weight scale not connect with oracle application what i can do?
1) How can u create the table?
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
how to add Servlet-api.jar file into eclipse 3.3.2 ?
how to convert hashmap to arraylist with iteration
Explain with examples any 2 features of OOPS.
define profiler???
what is session state?