Showing posts with label Cube Number in PHP. Show all posts
Showing posts with label Cube Number in PHP. Show all posts

Sunday, April 29, 2018

Cube Number in PHP

Here is a simple program that I wrote in PHP to convert a number into cube equivalent.

I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work and web development work kindly contact me in the following email address for further details.  If you want to advertise in my website kindly contact me also in my email address also. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.



Sample Program Output


Program Listing

index.php


<html>
 <title>Cube Number in PHP </title>
 <style>

  body {
       font-family:arial;
   font-weight:bold;
   size:15px;
   };
 </style>    
   
 <body>

<?php
  echo "<br>";
  echo "<h2>Cube a Number in PHP </h2>";
  echo "<p> Written By Mr. Jake R. Pomperada, MAED-IT </p>";
  
  $num1 = 8;
  
  $solve = ($num1 * $num1 * $num1);
  
  echo "<br>";
  echo "Display Result";
  echo "<br><br>";
  echo "The given number is ".$num1.".";
  echo "<br><br>";
  echo "The cube value of ".$num1." is " .$solve.".";

  
?>