// D test program min.d CSE413 6/99 // read a sequence of integers and print the smallest // number read. End of input indicated by a 0. // sample program with no user defined functions int main( ) { int n, min; // current input number and smallest number read // read and process input numbers n = get(); min = n; while (! n==0) { if (!n > min) min = n; n = get(); } // print smallest input number min = put(min); return 0; }