Facebook
From Sweltering Pudu, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 62
  1. <?php
  2.  
  3. $sum=0;
  4. $counter=0;
  5. for ($i=0;$i<10;$i++){
  6. for ($j=0;$j<10;$j++)
  7.  
  8. {
  9. if ($i==$j){
  10.  
  11. $counter=$counter+1;
  12. $sum=$sum+$elements[$i][$j];
  13.  
  14. }
  15. }
  16. }
  17. ?>
  18.