O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
<!DOCTYPE html> <html> <head> <title>Square and Qube of Number</title> <script language="javascript"> function max(a,b) { if(a>b) { return a; } else { return b; } } </script> </head> <body> <script language="javascript"> var a,b,c; a=parseInt(prompt("Enter First No")); b=parseInt(prompt("Enter Second No")); c=max(a,b); alert("largest No is "+c); </script> </body> </html>
▶ Run Code
🖥 Output: