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 + " ");
}
document.write("<br>");
};
</script>
</body>
</html>
No comments:
Post a Comment