Computer Science, asked by prakashaman010, 2 months ago

How is a subroutine defined in a program ? How is it used in the main program ? give an example​

Answers

Answered by nadimpallitanmayi
5

Answer:

In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. ... In different programming languages, a subroutine may be called a routine, subprogram, function, method, or procedure.A routine or subroutine, also referred to as a function, procedure, and subprogram, is code called and executed anywhere in a program. For example, a routine may be used to save a file or display the time

Answered by Anonymous
3

In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. ... In different programming languages, a subroutine may be called a routine, subprogram, function, method, or procedure.

Hope this much helps uh ❣️

Similar questions