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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Diffrence between 2.0,3.0,3.5,4.0. versions of .net?
Code for display the images from drive using vb 6.0?
needs examples for black box testing and white box testing
what is difference between VB5 AND VB6.0
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...
hoe to data grid use in sql server 2000?
Write a program to reverse a number?
how many keywords are present in "c"?
18 Answers Assurgent, Cynosure Software, IBM,
Write a pascal program to calculate the sum of the first 100 even number and odd number
what are partial classes. Where is the entry point of partial classes.
how to convert infix expression to prefix expression?