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
difference between mantis and other tools?
what is log files in qtp what is use
how to data grid use in data bind?
Differevce between arrays and array builders?
Difference between delegates and Events?
What are two of your strengths that you will bring to our QA/testing team?
when will triggars the at new event in abap and web dybn pro?
SAS question: I have 50 fils a1,a2,...,a50. the primary key is upc. then if i want to merge all 50 files, the code is as follows, data test; merge a1 ... a50; by upc; run; we know that writing all 50 files name is time consuming, is there any standard format of this code?
can we use commit,rollback in triggers and how?
how can we maintain the previous version scripts to new version.
what is class module in vb6? what it's use? with example..
what is the difference between rename and label
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
Define distributed queries. can you explain me as soon as possible