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

apply function in R

1) apply function: It takes 3 arguments matrix,margin and function.. Example: m<-matrix(c(1,2,3,4),nrow=2,ncol=2) m #1 indicates it is ap...