Computer Science, asked by rimilsoren0909, 1 year ago

i need a java programe to input three numbers and display largest among them using functions

Answers

Answered by LuckyYadav2578
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 .. ☆:)

rimilsoren0909: thank you for your help but i need a bluej(java) programme
rimilsoren0909: but your logic is correct.
Similar questions
Math, 1 year ago