Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?<php
- $liczba = 6;
- if ($liczba % 2 == 0)
- {
- print("liczba jest podzielna przez 2");
- }
- else
- {
- print("liczba nie jest podzielna przez 2");
- }
- if ($liczba % 3 == 0)
- {
- print ("liczba jest podzielna przez 3");
- }
- else
- {
- print ("liczba nie jest podzielna przez 3");
- }
- if ($liczba % 5 == 0)
- {
- print ("liczba jest podzielna przez 5");
- }
- else
- {
- print ("liczba nie jest podzielna przez 5");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement