Examples And How To Create A PHP Program: The Sum Of A Matrix

I will give you how to create a PHP program on Localhost, this Program is a program to compute addition and subtraction of matrices A and B.

You can use Macromedia Dreamweaver 8 application or notepad or notepad ++, if you do not already have it, you can download it, click here.

Just give me the code to run the program, and you can edit a bit in which you can edit, the code is :

<?php
//nama:anis mulyadi
//npm:13105111012
echo "<p>Nama : Anis Mulyadi</p>";
echo "<p>NPM : 13105111012</p>";
echo "<p>Ruang : 3.I</p>";
$data1 = array(
                array(1,2,3,4));
               
    $data2 = array(
            array(-1,-2,-3,-4));
               
    $temp = array(1,2,3,4);
    array_push($data2, $temp);
   
                echo "<p>Hasil penjumlahannya :</p>";
                echo "<table cellpadding='5' border='5'>";
                                                              
                for($f=0;$f<=0;$f++){
                            echo "<tr>";
                           
                            for($g=0;$g<=3;$g++){
                                                                                                                                              
                                    echo "<td>",($data1[$f][$g] - $data2[$f][$g]), "</td>";
                                                                                                                                
                            }
                       print"</tr>";
                
                    }
                    echo "</table>";
$data1 = array(
                array(1,2,3,4));
               
    $data2 = array(
            array(-1,-2,-3,-4));
               
    $temp = array(1,2,3,4);
    array_push($data2, $temp);
   
                echo "<p>Hasil pengurangan :</p>";
                echo "<table cellpadding='5' border='5'>";
                                                              
                for($f=0;$f<=0;$f++){
                            echo "<tr>";
                           
                            for($g=0;$g<=3;$g++){
                                                                                                                                              
                                    echo "<td>",($data1[$f][$g] + $data2[$f][$g]), "</td>";
                                                                                                                                
                            }
                       print"</tr>";
                
                    }
                    echo "</table>";
                  
       
        ?>

His results will be breakfast buffet like this :

Examples And How To Create A PHP Program: The Sum Of A Matrix
Read Also :

1. List of best-selling Hatchback in 10 months.
2. New Ford Everest 2015.
3. The easy way to register for Google Adsense to make money.
4. Simple application for laptops and computers,
5. Audi R8 Car Prices and Specifications.

Examples And How To Create A PHP Program: The Sum Of A Matrix Rating: 4.5 Diposkan Oleh: Canon Driver

0 komentar:

Post a Comment