1 2 3 4 5 6 7 8 9
clc //initialisation n=3 r=2 //CALCULATIONS i=3*n-3 v=i-r //results printf(' vibratory degree of freedom= % 1f ',v)