1 2 3 4 5 6 7 8
//example 1 //weight of a person clear clc m=1 //kg g=9.75 //acc.due to gravity in m/s^2 F=m*g //weight of 1 kg mass in N printf("\n hence,weight of person is F = %.3f N. \n",F)