blob: e7f2bc8bf79d749ae7c51cb9cd93f294363e1525 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//initialisation of variables
v=10//m/sec
f=20//kg
g=9.81//m/sec
q=12//m/sec
//CALCULATIONS
M=f/q//kg*m^-1 sec^2
G=M*g//kg
//RESULTS
printf('the acceleration due to gravity is =% f kg',G)
|