hercioneto

PW1 2019 - aula6.php

Sep 10th, 2019
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <!-- aula6.php -->
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.             <title>
  6.                 Aula 6 - Programação Web 1 - Análise e Desenvolvimento de Sistemas
  7.             </title>
  8.     </head>
  9.         <body>
  10.             <?php
  11.             echo "ola mundo!";
  12.             echo "<br>quebra de linha";
  13.             $variavel = "Meu novo parágrafo.";
  14.             echo "<p>".$variavel;
  15.             echo "<p>$variavel";
  16.              ?>
  17.              <hr>
  18.              Estou escrevendo mais texto.
  19.              <?php
  20.              $a = 1;
  21.              $b = 2;
  22.              $c = $a+$b;
  23.              echo "<br> $variavel";
  24.              echo "<br><b> $c </b>";
  25.              $variavel = $c + 10;
  26.              echo "<br> $variavel";
  27.              $c = $a * $b;
  28.              echo "<br>".$c;
  29.              $c = $a / $b;
  30.              echo "<br>".$c;
  31.              $c = $c - $a;
  32.              echo "<br>".$c;
  33.              ?>
  34.         </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment