Advertisement
am_dot_com

SW20210310

Mar 10th, 2021 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pt">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Tabelas de Símbolos</title>
  6. </head>
  7. <body>
  8.     <!--<script language="JavaScript" type="text/javascript">-->
  9.     <script>
  10.         const CODIGO_INICIAL=0;
  11.         const CODIGO_FINAL=255;
  12.         var codigoHtml = "";
  13.  
  14.         for //fazer um passeio do código inicial ao último
  15.         (
  16.             var codigo=CODIGO_INICIAL; //inicialização
  17.             codigo<=CODIGO_FINAL; //condição de continuidade
  18.            codigo=codigo+1
  19.        )
  20.        {
  21.            //o que fazer durante o passeio?
  22.            var linha = "symbol code "+codigo+" : &#"+codigo+";<br>";
  23.             codigoHtml = codigoHtml + linha;
  24.         }//for
  25.         document.write(codigoHtml);
  26.     </script>
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement