1 2 3 4 5 6 7 8 9 10 11 12 13
clear //Given m=0.3 //Kg a=30 //degree B=0.15 //T g=9.8 //m/s**2 //Calculation // I=(m*g*tan(a*3.14/180.0))/B //Result printf("\n value of current is %0.2f A",I)