https://github.com/julianamancera/appdev_lab-4_php
https://github.com/julianamancera/appdev_lab-4_php
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/julianamancera/appdev_lab-4_php
- Owner: JulianaMancera
- Created: 2025-02-24T00:17:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T00:24:29.000Z (3 months ago)
- Last Synced: 2025-02-24T01:25:03.983Z (3 months ago)
- Language: PHP
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AppDev_Lab-4_PHP
Write a program that prints the numbers from 1 to 100. But for number is divisible of three print `is divisible to 3` instead of the number and for the number is divisible of five print `is divisible to 5`.
For numbers which are divisible of both three and five print `is divisible to 3 and 5`. Remember, you can use the modulus operator to check if a number is divisible by another number.
**output should like this below**
```
1
2
3 is divisible to 3
4
5 is divisible to 5
6 is divisible to 3
... up to 100