clc //Intialisation of variables s=30 LC=0.5 // since LC= 30 secs which means 0.5 min //Caluculation of variable n=s/LC x=n-1 //Results printf (' %f',x) printf (' such primary divisions should be taken for the length of the vernier scale and then divided into %2f parts for a direct vernier',n )