Skip to content

Instantly share code, notes, and snippets.

@bandage
bandage / cakepi.php
Created August 6, 2012 16:05 — forked from tchalvak/cakepi.php
Simple Programming task
<?php
/*
Using php, write a program that must fulfill these requirements:
For the numbers from 1 to 100,
If the number is a multiple of 3, print cake instead of the number.
If the number is a multiple of 5, print pi instead of the number.
If the number is a multiple of 15, print cakepi instead of the number.