Celsius to Fahrenheit 1
by jasonvee
JavaScript
//get user input
var answer = prompt('Enter degrees celsius: ');
//convert user input to an integer (number)
// not crucial in js for small programs, but good to know the data type
answer = parseInt(answer);
//add formula to convert celcius to fahrenheit
var fahrenheit = (answer * 9/5 ) + 32;
//output concatenation
document.write(fahrenheit);