blob: d7a4620af0871f24d0c05b2dff3ca0fa50999050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Calulate the Efficiency of the power plant
//Example 5.2
clc;
clear;
T2=833; //final temperature in K
T1=311; //initial temperature in K
e=((T2-T1)*100)/T2; //Efficiency of the power plant in percent
printf("Efficiency of the power plant = %.0f percent",e);
|