clc // Given that v = 2.5e6 // speed of electron in meter/sec B = 2e-4 // magnetic field in tesla r = 1.76e11 // ratio of charge on electron to the mass of electron in C/kg // Sample Problem 2 on page no. 6.20 printf("\n # PROBLEM 2 # \n") a = (B * r * v) printf("\n Standard formula used \n a = (B * r * v). \n ") printf("\n Momentum of acceleration = %e meter/square sec.",a)