LARGER.sml

  Download

More scripts: SML Fundamentals

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# larger.sml
# Example of a user-defined function
numeric a, b, c, x, y;
func larger ( numeric x, numeric y ) {
	if (x > y) return x;
		else return y;
	}
clear();
a = 6; b = 7;
c = larger(a,b);
print("larger(a,b) is: ", c);