Vikhyath_11

w4

Jul 29th, 2024 (edited)
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Program4</title>
  7. <style>
  8. th{
  9. background-color: rgb(185, 75, 93);
  10. }
  11. td{
  12. background-color: pink;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <script>
  18. document.write("<center><table border='1' width='300px'>");
  19. document.write("<tr><th>NUMBER</th><th>SQUARE</th><th>CUBE</th></tr>");
  20. for(n=0;n<=10;n++){
  21. document.write("<tr><td>"+n+"</td><td>"+n*n+"</td><td>"+n*n*n+"</td></tr>");
  22. }
  23. document.write("</table></center>");
  24. </script>
  25. </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment