Hello Friends My Name Is Viraj,Today I Will Print Number From 0 To 50 Different By 2 On Your Web Page.
Here In This Html Tutorial We Will Print Number From 0 To 50 Different By 2.
So In This Blog We Will Print Number From 0 To 50 Different By 2.
Action Will Be Done On Button Control Using Html/Javascript Code.
Here Is An Example Related To Topic...
Step 1 :
<html>
<head>
<body>
<button onclick="data()">click</button>
<script>
function data()
{
var num;
for(num=0;num<50;num=num+2)
{
document.write("<br>"+num);
}
}
</script>
</body>
</head>
</html>
Output :
Here In This Html Tutorial We Will Print Number From 0 To 50 Different By 2.
So In This Blog We Will Print Number From 0 To 50 Different By 2.
Action Will Be Done On Button Control Using Html/Javascript Code.
Here Is An Example Related To Topic...
Step 1 :
<html>
<head>
<body>
<button onclick="data()">click</button>
<script>
function data()
{
var num;
for(num=0;num<50;num=num+2)
{
document.write("<br>"+num);
}
}
</script>
</body>
</head>
</html>
Output :
Good
ReplyDelete