//Given that p1 = 5 //in kg.m/s d1 = 2.0 //in meter p2 = 2 //in kg.m/s d2 = 4.0 //in meter //Sample Problem 12-4 printf("**Sample Problem 12-4**\n") L = p1*d1 - p2*d2 //the direction of L2 is opposite to L1 printf("The net angular momentum of the two particle system is %dkg.m/s^2", L)