summaryrefslogtreecommitdiff
path: root/647/CH1/EX1.12/Example1_12.sce
blob: e9dcbc162e9f99dc20b1ca07202fd037228bca3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear;
clc;

// Example: 1.12
// Page: 24

printf("Example: 1.12 - Page: 24\n\n");

// Solution

// The relation is:
// (C/5) = ((F - 32)/9)
// For C = F
C = - (32*5/4); // [degree Celsius]
printf("The temperature which has the same value on both the centigrade and Fahrenheit scales is %d degree Celsius or %d degree Fahrenheit\n",C,C);