pass of the looplooking at the task definition abovewe should be able to answer all of these questions(ithe loop should start at zero yearsso our initial condition should be (iithe statements to be repeated are the evaluation of the formula and the printing of and (iiiwe want the loop to stop when reaches yearsso our condition becomes something like < and (ivwe want to print the values for steps of one yearso we need to increase by one for every pass of the loop inserting these details into the general while loop framework above yields the following codep while < ( + / )** print(nan loop heading with condition st statement inside loop nd statement inside loop last statement inside loop the flow of this program is as follows firstn is < is truetherefore we enter the loop and execute the loop statementscompute print and update to when we have reached the last line inside the loopwe return to the while line and evaluate < again this condition is still trueand the loop statements are therefore executed again new is computed and printedand is updated to the value of two we continue this way until is updated from to nowwhen we return to evaluate < the condition is false the program then jumps straight to the first line after the loopand the loop is finished useful tipa very common mistake in while loops is to forget to update the variables inside the loopin this case forgetting the line this error will lead to an infinite loopwhich will keep printing the same line forever if you run the program from the terminal window it can be stopped with ctrl+cso you can correct the mistake and re-run the program boolean expressions an expression with value of true or false is called boolean expression boolean expressions are essential in while loops and other important programming constructsand they exist in most modern programming languages we have seen few examples alreadyincluding comparisons such as = in