Advertisement
GamerBhai02

Program 16 Square and Cube of Number

Dec 6th, 2024 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.31 KB | Source Code | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. </head>
  5. <body>
  6. <div align=center>
  7. <table border="1">
  8. <tr>
  9. <th>Number</th>
  10. <th>Square</th>
  11. <th>Cube</th>
  12. </tr>
  13. <script>
  14. for(i=0;i<=10;i++){
  15. document.write("<tr><td>"+i+"</td><td>"+(i*i)+"</td><td>"+(i*i*i)+"</td></tr>");
  16. }
  17. </script>
  18. </table>
  19. </div>
  20. </body>
  21. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement