Provide input, perform calculations, and display the output. View source.

 

Return to Having Fun with JavaScript.