blob: 22ba96b973eea554d386e6bbdee505b80be42074 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Example 3_8
clc;funcprot(0);
// Given data
m=50;// The mass in kg
g=9.81;// The acceleration due to gravity in m/s^2
d=2;// The distance in m
// Calculation
W=m*g*d;// J
printf("\nThe heat Q that must be transferred equals the work,%3.0f J",W);
|