1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
clc// // // //Variable declaration a=1; b=1/2; c=3; //Calculation A=1/a; B=1/b; C=1/c; h=A*c; k=B*c; l=C*c; //miller indices of plane //Result printf("\n miller indices of plane is ( %0.3f %0.3f %0.3f)",h,k,l)