about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/2/2.js
diff options
context:
space:
mode:
Diffstat (limited to 'usth/ICT3.2/prac/2/2.js')
-rw-r--r--usth/ICT3.2/prac/2/2.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/usth/ICT3.2/prac/2/2.js b/usth/ICT3.2/prac/2/2.js
new file mode 100644
index 0000000..97b49ba
--- /dev/null
+++ b/usth/ICT3.2/prac/2/2.js
@@ -0,0 +1,5 @@
+const C = 'Temperature in Celsius: ';
+const F = 'Temperature in Fahrenheit: ';
+
+alert(F + (prompt(C) * 1.8 + 32));
+alert(C + ((prompt(F) - 32) / 1.8));