int _tmain(int argc, _TCHAR* argv[]) { int number; int arrayofnumber[10000]; cout<<"Enter number of element in array: "; cin>>number; for(int i=0;i<number;i++){ cin>>arrayofnumber[i]; } int LargestNumber=arrayofnumber[0]; for(int i=0;i<number;i++){ if(LargestNumber<arrayofnumber[i]){ LargestNumber=arrayofnumber[i]; } } cout<<"The largest value is: "<<LargestNumber; getch();
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment