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

what are wrapper classes

2 Answers  


Plz Show notepad Coding using c# in window based application

1 Answers  


Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?

2 Answers  


What is dialog programming?

0 Answers  


How should a programmer decide whether to use a macro or a subroutine to accomplish a given logical function

1 Answers   R V College of Engineering, University of Jordan,


THE CHANNEL IN DATA COMMUNICATION CAN BE?

0 Answers   TCS,


Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile

0 Answers  


Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance

0 Answers  


5. How do you round the addition or subtraction of two numbers in assembler?

0 Answers   Wipro,


Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number

0 Answers   Amazon,


What is the first message line that any language learning prints on the screen? and why?

0 Answers  


Explain the types of operations? Draw the figure for shift and rotate operations?

0 Answers  


Categories