clc //initialisation of variables n1=750//rpm z1=14//m z2=70//m z3=15//m z4=45//m //CALCULATIONS N=n1*((z1*z3)/(z2*z4))//rpm //RESULTS printf('the driving gear on shaft=% f rpm',N)