clc clear //input f1=50 f2=50 //calculation of net force f=f1+f2 // the two forces act in same direction //output printf("the resultant force is %3.3f N",f)