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
Write a program to create a process in UNIX
How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?
is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...
MOV.CB 007H,ADCON1 MOVE.CT 001H,_OPTION_REG_7 MOV.CB 007H,CMCON
how do we provide security for web services
Given n red balls and m blue balls and some containers, how would you distribute those balls among the containers such that the probability of picking a red ball is maximized, assuming that the user randomly chooses a container and then randomly picks a ball from that.
How to get the index of the clicked field in reports in ABAP?
What is SOLID Principle in Programming Language?
when a query is made on Logical file in DB2/400, will the records satisfying select/omit criterion be fetched from all members of physical file or only the member with same name as physical file?
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
can we allocate memory for interface? if no then why?
how do u handle table control inbdc explain the process in steps iwant the answer in urgent please forward this even i know how to explain there
what is delegate and delegation model give the real live example on delegate model
Which design patterns have you used?
5.Call by value and Call by reference with program?