Assignments from Function

Rashmi Mishra
0


Assignments from Functions


  1. Write a function to calculate the factorial of a number (a non-negative integer). The function accepts the number as an argument.
  2. Write a function to check whether a number is prime or not. Note: A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself.
  3. Write a function to reverse a string.
  4. Write a function to sort an array.
  5. Write a PHP function that checks whether a string is all lowercase.
  6. Write a PHP function that checks whether a passed string is a palindrome or not?
  7. Write a PHP program to calculate area of rectangle by using PHP Function.
  8. Write a PHP program to calculate sum of 3 given number by using PHP Function with return type.
  9. Write a PHP Program to check a given number is either Even or Odd using PHP function.
  10. Write a PHP Program to generate a febonacci series using PHP functions

Post a Comment

0Comments

Post a Comment (0)