Advertisement
Borzyk

Untitled

Jul 8th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. for($i=0;$i<$c;$i++) {
  2. for($j=0;$j<$c;$j++){
  3. if($i==$j&&!($j==($c-1))){
  4. $j++;
  5. }
  6. elseif($i==$j&&($j==($c-1))){
  7. $i++;
  8. $j=0;
  9. }
  10. elseif($i==$j&&($i==($c-1))&&($j==($c-1))){
  11. echo "to koniec obliczania";
  12. }
  13. else{
  14. if($y[$i]==$y[$j]){
  15. $q++;
  16. echo "$q ";
  17. }
  18. }
  19. }
  20.  
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement