blob: 679bd1dd3b2acaa80c46c91c6fdb05bea69748b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clc
//initialisation of variables
Q=50//cal
W=20//cal
Qi=36//cal
Wi=-13//cal
ui=10//cal
ub=22//cal
//CALCULATIONS
du=Q-W
Wibf=Qi-du
Qfi=du+Wi
Uf=du+ui
Qbf=Uf-ub
//results
printf(' \n Wibf= % 1f cal',Wibf)
printf(' \n Qfi= % 1f cal',Qfi)
printf(' \n Uf= % 1f cal',Uf)
printf(' \n Qbf= % 1f cal',Qbf)
|