23 lines
527 B
HTML
23 lines
527 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Geometry Calculator</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
"use strict";
|
|
|
|
// get the length of side A and B
|
|
|
|
// calculate the perimeter of the rectangle
|
|
|
|
// calculate the area of the rectangle
|
|
|
|
// get the hypotenuse of the right triangle
|
|
// pythagorean theorem : c = sqrt(a^2 + b^2)
|
|
|
|
// display the results to the user
|
|
|
|
</script>
|
|
</body>
|
|
</html> |