clc //Intialisation of variables s=1/4 //degree LC= 0.005 // degree 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 )