WTAD Practical - 7
Write a JavaScript to generate two random numbers and find out maximum and
minimum out of it.
Write a JavaScript to generate two random numbers and find out maximum and
minimum out of it.
<HTML>
<html>
<HEAD>
<TITLE>WTAD.practical-7 @iAmLearningHere </TITLE>
</HEAD>
<body bgcolor="YellowGreen">
<center><font size=5>
<script language="JavaScript">
var a,b;
a=parseFloat(prompt("enter the Celsius:",""));
document.write("Celsius value is: "+a+"<br><br>");
b=32+(a*1.8);
alert("Celsius to Fehrenheit "+b);
document.write("Fehrenheit value is: "+b);
</script>
</body>
</HTML>
<html>
<HEAD>
<TITLE>WTAD.practical-7 @iAmLearningHere </TITLE>
</HEAD>
<body bgcolor="YellowGreen">
<center><font size=5>
<script language="JavaScript">
var a,b;
a=parseFloat(prompt("enter the Celsius:",""));
document.write("Celsius value is: "+a+"<br><br>");
b=32+(a*1.8);
alert("Celsius to Fehrenheit "+b);
document.write("Fehrenheit value is: "+b);
</script>
</body>
</HTML>
0 comments :