Wednesday, 4 February 2015

Html come to display the triangle using number

Html come to display the triangle using number

<html>
<head>
<title>prashantanand</title>
</head>
<body>

<script type="text/javascript">

for (var i =1; i <= 5; i++) {
for(var j=1; j<=i ; j++){
document.write("0"+j + "&nbsp");
}
document.write("<br>");
};
</script>
</body>
</html>

No comments:

Post a Comment