Created
July 13, 2012 04:33
-
-
Save hidayat365/3102738 to your computer and use it in GitHub Desktop.
Problem Deret
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /**** | |
| * Belum sesuai seperti yang diminta | |
| * tapi sudah mendekati, silakan modifikasi sendiri | |
| ****/ | |
| for ($i=1; $i<=100; $i+=4) { | |
| for ($j=0; $j<4; $j++) { | |
| print $i+$j.' '; | |
| print ($j%4==0 or $j%4==3) ? 'a ' : ''; | |
| } | |
| print '<br>'; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment