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
Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.
why not instantiating servet using new operator?
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
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?
what is d main diff between the java and .net framework
smal talk is pure object oriented or not?
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
Find out the list of roles which gives access to GUI activities? thanks in advance
what is the basic and unique feature of dotnet
Have you used callsymputx? what points need to be kept in mind when using it?
in teradata level primary in table level allows duplicates why?
For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?
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)
When we use Windows authentication mode
what is the filters in biztakk server? where it can use?