ZIT All Events

Teams: M. Muzammil, xretsu, Rizal ismal, Buns, Ipank Veslia, Sulwan Sayuti
ZIT All Events #10 Penjumlahan Bilangan Matrix


Download Source Code: https://progrez.cloud/download.php?qff9b6xkjxqf40buivsv4exgbsqtq0y6 [code] <?php $a = [ [1,2,3], [3,4,4], [5,6,7] ]; $b = [ [2,3,4], [4,5,6], [7,8,9] ]; for($i=0;$i<count($a);$i++){ for($j=0;$j<count($a[$i]);$j++){ $c[$i][$j] = $a[$i][$j] + $b[$i][$j]; } } print_r($c); echo "\n"; /* [a,b] + [e,f] = [a+e , b+f] [c,d] [g,h] [c+g , d+h] [1,2] + [2,3] = [1+2 , 2+3] = [3,5] [3,4] [4,5] [3+4 , 4+5] [7,9] */ Download Source Code: https://progrez.cloud/download.php?qff9b6xkjxqf40buivsv4exgbsqtq0y6 [code]