about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/2/2.js
blob: 97b49baba0cb33c4c6d5cad478af02d55c16e7a0 (plain) (blame)
1
2
3
4
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));