loop examples, factorial, fibonacci, palindrome