Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

max and min in array?

 
James Jones
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i think this might be a bit too easy for here, i am not sure.
but its not easy for me, lol
i have this code which prints out a simple array....right. but i cant figure out a way for it to print out the min, max, and mean...can i have some hints please....
 
Anupreet Arora
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,
I have added to your code, to find the max, min and mean of the array elements. Hope you find this helpful.
Regards,
Anupreet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic