हिंदी

Write event driven JavaScript program for the following. Display number sequence from 100 to 150 in following format. (100, 101, 102, ............., 150) - Information Technology

Advertisements
Advertisements

प्रश्न

Write event driven JavaScript program for the following.

Display number sequence from 100 to 150 in following format.

(100, 101, 102, ............., 150)

संक्षेप में उत्तर

उत्तर

Coding:

<html>
<script type="text/javascript">
var i;
document.write("<br>Numbers from 100-150 are <br>");
for(i=100;i<=150;i++)
{
document.write("\t"+i);
}
</script>
</html>
shaalaa.com
DOM (Document Object Model)
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Advanced Javascript - Exercises [पृष्ठ ५२]

APPEARS IN

बालभारती Information Technology (IT) (Science) [English] 12 Standard HSC Maharashtra State Board
अध्याय 3 Advanced Javascript
Exercises | Q 7.2 | पृष्ठ ५२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×