Special Section: Building Your Own Compiler

Using the sample programs of Fig. 21.26, Fig. 21.27 and Fig. 21.28 as your guide, write a Simple program to accomplish each of the following:

a)input 10 integers and print the smallest.
b)use a sentinel-controlled loop to input 10 integers and compute and print their sum.

how do I write SML text for this