Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



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 ..

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

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 ..

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

Post New Answer

More Programming Languages AllOther Interview Questions

Diffrence between 2.0,3.0,3.5,4.0. versions of .net?

0 Answers  


Code for display the images from drive using vb 6.0?

2 Answers   IBM,


needs examples for black box testing and white box testing

1 Answers   CTS, IBM, Wipro,


what is difference between VB5 AND VB6.0

2 Answers   Satyam,


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

0 Answers  


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...

0 Answers  


hoe to data grid use in sql server 2000?

0 Answers   HCL,


Write a program to reverse a number?

0 Answers   BirlaSoft,


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

0 Answers  


what are partial classes. Where is the entry point of partial classes.

1 Answers   Satyam,


how to convert infix expression to prefix expression?

0 Answers   nvidia,


Categories