Advertisement
warren05

WMalangis_SW_No._1

Mar 6th, 2023 (edited)
786
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | Source Code | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.     <title><?php echo "Seatwork No. 1"; ?></title>
  5. </head>
  6. <body>
  7.  
  8. <?php
  9. //number 1
  10. $firstname = "Warren";
  11. $lastname = "Malangis";
  12.  
  13. $fullname = $firstname . " " . $lastname;
  14. echo "$fullname\n";
  15.  
  16. //number 2
  17. $x = 5;
  18. $y = 18;
  19.  
  20. $y++;
  21. $x--;
  22. $sum = $x + $y;
  23. echo "The sum of x and y is " . "$sum";
  24. ?>
  25.  
  26. </body>
  27. </html>
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement