Question: what are subprogram in programming?
Answer: Subprograms are small programs that are written within a larger, main program. The purpose of a subprogram is to perform a specific task. This task may need to be done more than once at various points in the main program. There are two types of subprogram: procedures.