1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
clc //Variable declaration h=2 k=2 l=0 a=450 //Calculations d=a/(sqrt(h**2+k**2+l**2)) //Result printf('d(220) =%0.3fpm\n',(d))