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

Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.

618


why not instantiating servet using new operator?

1487


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

2166


Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?

1503


what is d main diff between the java and .net framework

1544






smal talk is pure object oriented or not?

1522


could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?

1282


Find out the list of roles which gives access to GUI activities? thanks in advance

1717


what is the basic and unique feature of dotnet

1709


Have you used callsymputx? what points need to be kept in mind when using it?

1534


in teradata level primary in table level allows duplicates why?

1641


For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?

3182


One boy has to climb steps. He can climb 1 or 2 steps at a time. Write a function that will returns number of way a boy can climb the steps. Int WaytoSteps(int n) (eg:- suppose number of steps is n=4 ,the function will return 5 (one-one-one-one ,one-one-two, one-two-one-,two-one-one, two-two)

2990


When we use Windows authentication mode

1572


what is the filters in biztakk server? where it can use?

1648