
The imperative approach follows the principle of workflow control and answers the question ‘how to do’. The declarative approach describes the data flow and answers the question ‘what to do’. In addition, the imperative code most often uses instructions (operators), and declarative relies m…