summaryrefslogtreecommitdiff
path: root/647/CH1/EX1.12
diff options
context:
space:
mode:
Diffstat (limited to '647/CH1/EX1.12')
-rwxr-xr-x647/CH1/EX1.12/Example1_12.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/647/CH1/EX1.12/Example1_12.sce b/647/CH1/EX1.12/Example1_12.sce
new file mode 100755
index 000000000..e9dcbc162
--- /dev/null
+++ b/647/CH1/EX1.12/Example1_12.sce
@@ -0,0 +1,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); \ No newline at end of file