//A gun //applying principle of conservation of momentum v=-5 //m/sec printf("\nGun will have a velocity of %.2d m/sec in the direction opposite to that of bullet",-v) //Let the gun recoil for a distance s //Using work energy equation s=(300*25)/(2*9.81*600) //m //Applying impulse momentum equation to gun t=(300*5)/(600*9.81) //sec printf("\ns=%.3f m\nt=%.3f sec",s,t)