2007年10月12日 星期五

Homework 3-26-2007: Finding the max and the min

Based on your study of Display 3.8, write a code to find the max and min of a list of number.
For example, given 1,3,5, and9, the max is 9 and the min is 1.
Your program should be able to process a list of any length.


第一次先用三個數值



第二次用10個數值
所以可以自由更改要比較多少數值

沒有留言: