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


Please Help Members By Posting Answers For Below Questions

what is adodb??y it is used for connection of V.B and access??what is ado?dao?

1774


When will you use shell script/Perl ahead of C/C++?

655


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

1571


what is difference between input parameter and output parameter.

4208


what is the difference between uservariables and systemvariables (in Environmental variables)???

1936






a characteristic of a multiprogramming is? a.simultaneous exe of pgm instr 4m 2 appli b.concurrent processing of 2 r more prgms c.multiple cpu s d.all the abov

1679


what is delegate and delegation model give the real live example on delegate model

2819


what is meaning of MDM in sap?let me know that meaning

1680


What is the purpose of element of in Ajax

2013


Can i please VHDL code for D-Latch with clear input ?? (HINT: Set up a “Process” with appropriate sensitivity list to get the desired D-Latch with Clr working.) Inputs and Outputs: entity Lab4b is Port ( Clr, Clk, D : in STD_LOGIC; Q : out STD_LOGIC); end Lab4b;

990


5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above

2125


write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.

1177


Write a program to create a process in UNIX

2090


How does the TCP handle the issue of multiplexing?

2404


9.Difference between even and odd signals?explain with the diagram?

2963