2 Replies - 9028 Views - Last Post: 30 November 2008 - 12:03 PM Rate Topic: -----

#1 pujapuja  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 30-November 08

program to find largest and smallest number from an array of n integer

Post icon  Posted 30 November 2008 - 01:20 AM

pls help me with this prgrm as i have my exam todY
program to find largest and smallest number from an array of n integers
Is This A Good Question/Topic? 0
  • +

Replies To: program to find largest and smallest number from an array of n integer

#2 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5247
  • View blog
  • Posts: 27,069
  • Joined: 10-May 07

Re: program to find largest and smallest number from an array of n integer

Posted 30 November 2008 - 01:23 AM

View Postpujapuja, on 30 Nov, 2008 - 02:20 AM, said:

program to find largest and smallest number from an array of n integers

This has been covered on here many, many times. Feel free to search for it.

If you have any specific questions, please post your code & any errors you are getting.
Was This Post Helpful? 0
  • +
  • -

#3 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,141
  • Joined: 14-September 07

Re: program to find largest and smallest number from an array of n integer

Posted 30 November 2008 - 12:03 PM

Sort it, then arr[0] is the smallest and arr[size-1] is the largest.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1