Tutorial 3 of Artificial Intelligence
1.
Write a program to calculate factorial of
the given number.
2. Write a program to recursively call power
function which computes the nth power of m (mn). Be sure
to consider the case where n = 0, i.e. m0 = 1.
3.
Write a program to repeatedly input
character and decide if the same is a lower case alphabet, an upper case
alphabet or a digit.
4.
Write a program to find the length of the
string.
5.
Write a program to separate and print each
word of the string
6. Write a program to check whether a string is
palindrome or not.