blob: 4ad51b95d0098c88a2d2597194edc2a5013edba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
clear
//Input data
h=60//Height of the Niagra falls in m
S=4190//Specific of water in J/kg.K
//Calculations
dt=(h*9.8)/S//The temperature difference in K
//Output
printf('The temperature difference is %3.5f K',dt)
|