blob: 66359cf7c86ac3893ab48d6e48a2cb8b7fc60fd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
//initialisation of variables
M= 5//slug
g= 32 //ft/sec^2
M1= 10 //kg
g1= 9.8 //m/sec^2
M2= 15 //gm
g2= 980 //cm/sec^2
//CALCULATIONS
W= M*g
W1= M1*g1
W2= M2*g2
//RESULTS
printf ('weight = %.f lb',W)
printf ('\n weight = %.f N',W1)
printf ('\n weight = %.f dyn',W2)
|