C#:
VB.NET:
PHP:
Spoiler:
PHP Code:
<?php
for ($i=1; $i<100; $i++)
{
if ($i % 3 == 0)
{
if ($i % 5 == 0)
{
echo($i." is a multiple of both 3 and 5<br />");
}
else
{
echo($i." is a multiple of 3<br />");
}
}
if ($i % 5 == 0)
{
if ($i % 3 == 0)
{
echo($i." is a multiple of both 3 and 5<br />");
}
else
{
echo($i." is a multiple of 5<br />");
}
}
}
?>
BASIC: (Not actually 100% this works, hah!)