(* your code goes here *)let average a b = let sum = a +. b in sum /. 2.0;; Printf.printf "average is %d\n" (average 10 6);
Standard input is empty
File "prog.ml", line 6, characters 45-47: Error: This expression has type int but an expression was expected of type float
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!