Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ?<php
  2. $liczba = 6;
  3. if ($liczba % 2 == 0)
  4. {
  5. print("liczba jest podzielna przez 2");
  6. }
  7. else
  8. {
  9. print("liczba nie jest podzielna przez 2");
  10. }
  11. if ($liczba % 3 == 0)
  12. {
  13. print ("liczba jest podzielna przez 3");
  14. }
  15. else
  16. {
  17. print ("liczba nie jest podzielna przez 3");
  18. }
  19. if ($liczba % 5 == 0)
  20. {
  21. print ("liczba jest podzielna przez 5");
  22. }
  23. else
  24. {
  25. print ("liczba nie jest podzielna przez 5");
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement