update,
This commit is contained in:
22
_resources/it114105/itp4513/Lab01/Lab01_Task3.php
Normal file
22
_resources/it114105/itp4513/Lab01/Lab01_Task3.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Lab01 Task3</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
$x = 20;
|
||||
$y = 6;
|
||||
|
||||
printf("%s + %s = %d <br>", $x, $y, ($x+$y));
|
||||
printf("%s - %s = %d <br>", $x, $y, ($x-$y));
|
||||
printf("%s * %s = %d <br>", $x, $y, ($x*$y));
|
||||
printf("%s / %s = %f <br>", $x, $y, ($x/$y));
|
||||
printf("%s % %s = %d <br>", $x, $y, ($x%$y));
|
||||
?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user