Exercise Questions on Functions

  1. WAF to input 2 numbers and find sum.

    Solution: C C#

  2. WAF to find area of rectangle using default return data type.
  3. WAF to input 2 numbers and find greater. C
  4. WAF to input number and find factorial.
  5. WAF to generate Fibonacci series.
  6. WAF to generate Lucas series.
  7. WAF to find a power b. C C#
  8. WAF to perform arithmetic operation (+, -, /, *) and return all 4 result.
  9. WAF to input 10 names from user and find how many has greater than 5 in length.