Found a very useful functionality in this forum
Post Reply
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
24-07-2012, 02:11 PM
Found a very useful functionality in this forum
Did you know that you can format your PHP Code in this forum??

PHP Code:
<?php 
    
function f($n) {
    if (
$n 3) {
        return 
1
    }
    return 
f($n-1) + f($n-2);    
}

$n=1;
// Warning: don't try this at home!
while(true) {
    echo 
f($n) . "\n";
    ++
$n;
}

?>

But please don't over use it.

DISCLAIMER: If you find a message from me offensive, inappropriate, or disruptive, please ignore it.
If you don't know how to ignore a message, complain to me and I will be happy to demonstrate.

[Image: tta.php]
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
Post Reply
Forum Jump: