from a coding perspective, a program is just a bunch of statements and function definitions
but from the perspective of giving inputs, there are two distinct kinds.
a batch program consumes all of its inputs at once and computes its result
an interactive program consumes some of its inputs,computes,produces some output,consumes more input,produces some output, and so on.