Something went wrong. Try again.
My course files for the Online Computer Science degree
Something went wrong. Try again.
330 B · 23 lines
at master
123456789101112131415161718192021222324(* Programming Languages, Dan Grossman *)(* Section 1: Some Errors *)
(* This program has several errors in it so we can try to debug them. *)
val x = 34
val y = x + 1
val z = if y > 0 then false else x < 4
val q = if y > 0 then 0 else 42
val a = ~5
val w = 0
val funny = 34
val v = x div (w + 1)
val fourteen = 7 + 7