Monday, 15 January 2018

Sum Of Two Numbers In JavaScript Using Prompt

<!doctype html>
<html>
<head>
</head>
<body>
<script>
var num1 =parseInt(prompt("Enter first number"));
var num2 =parseInt(prompt("Enter second number"));
alert(num1+num2);
</script>
</body>
</html>

No comments:

Post a Comment

Global Infrastructure and its components in AWS

You may operate your workloads wherever and however you choose with the AWS Global Infrastructure, and you'll use the same network, cont...