Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_GET['num'])) {
- $num = intval($_GET['num']);
- }
- for($i = $num; $i >= 1; $i--)
- {
- if ($num % $i != 0) {
- echo $i;
- echo " ";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement