i need a java programe to input three numbers and display largest among them using functions
Answers
Answered by
1
<HTML>
<BODY>
<script = "text/ javascript">
var a = parseInt (prompt ("Enter a number"))
var b = parseInt (prompt ("Enter a number"))
var c= parseInt (prompt ("Enter a number"))
if ((a>b)&&(a>c)
{
document.write ("A is largest");
}
else
if((b>a ) && (b>c))
{
document.write ("B is largest");
}
else
if((c>a)&&(c>b))
{
document.write ("A is largest");
}
</script>
</BODY>
</HTML>
......This programme will help you may be there was any error of gaping and spelling but other thing is perfectly correct.........if any problem then you can ask in comment .. ☆:)
<BODY>
<script = "text/ javascript">
var a = parseInt (prompt ("Enter a number"))
var b = parseInt (prompt ("Enter a number"))
var c= parseInt (prompt ("Enter a number"))
if ((a>b)&&(a>c)
{
document.write ("A is largest");
}
else
if((b>a ) && (b>c))
{
document.write ("B is largest");
}
else
if((c>a)&&(c>b))
{
document.write ("A is largest");
}
</script>
</BODY>
</HTML>
......This programme will help you may be there was any error of gaping and spelling but other thing is perfectly correct.........if any problem then you can ask in comment .. ☆:)
rimilsoren0909:
thank you for your help but i need a bluej(java) programme
Similar questions