×Note
Login Made Mandatory to Access the Free Study Materials
-ADMIN
Page Loading! Please Wait
WEB TECHNOLOGY LABORATORY WITH MINI PROJECT
17CSL77
15CSL77
[As per Choice Based Credit System (CBCS) scheme]
CREDITS – 02
Subject Code - 17CSL77
SEMESTER - VII
Advertisement
WEB TECHNOLOGY LABORATORY WITH MINI PROJECT
17CSL77
Program - 2
Write a JavaScript that calculates the squares and cubes of the numbers from 0 to 10
and outputs HTML text that displays the resulting values in an HTML table format.
Authentication Successful But Step-2 is Pending. Complete Step-2 to Access Study Materials
Write a JavaScript that calculates the squares and cubes of the numbers from 0 to 10
and outputs HTML text that displays the resulting values in an HTML table format.
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>Program - 2</title><style>*{font-size:25px;padding:10px;}table,td,th{border:1pxsolidblue;width:33%;text-align:center;background-color:darkkhaki;}table{margin:auto;}</style></head><body><script>document.write("<table> <tr><th colspan='3'> Number ranging from 0 to 10</th></tr>");document.write("<tr><td>Number</td><td>Square</td><td>Cube</td></tr>");for(vari=0;i<=10;i++){document.write(`<tr><td>${i}</td><td>${i * i}</td><td>${i * i * i}</td></tr>`)}document.write("</table>");</script></body></html>
Output
Live Output
Advertisement
×NotePage Number is specified to navigate between Pages... SYS = Syllabus P = Program
-ADMIN
×Note
ANY PROBLEM IN Login or Downloading, YOU ARE FREE TO CONTACT US...
-ADMIN
Advertisement
lIKE OUR CONTENT SUPPORT US BY FOLLOWING US ON INSTAGRAM : @futurevisionbie
More Materials will BE UPLOADED "AS SOON AS POSSIBLE"