When you move computational detail into a function, you are said to be doing procedure abstraction, and you are said to be hiding the details of how a computation is done behind a procedure-abstraction barrier.
The key virtue of procedure abstraction is that you make it easy to reuse your programs. Instead of trying to copy particular lines of program, youor another programmerarrange to call a previously defined function.