Practice Programs on Functions

What Is Function?

→ A Function is a block of code that performs a certain task.


1. Write a Program for the addition of two numbers using function.


2. Write a Program for the subtraction of two numbers using function.


3. Write a Program for addition, subtraction, multiplication, and division using function.


4. Write a Program to find leap year or not using function.


5. Write a Program to find the square of a number using function.


6. Write a Program to check a given number is even or odd using function.


7. Write a Program to Swap two numbers using function.


8. Write a Program to Swap two numbers without using a third variable using functions.


9. Write a Program to Find the factorial of a number using function.


10. Write a Program to Find out the smallest of two numbers using function.



Post a Comment

1 Comments

  1. Bonus features of the slot embrace wilds and the unique Twin Reel characteristic. The materials introduced are by no means meant to substitute for professional medical care by a qualified practitioner, nor should they be construed as such. Financial 점보카지노 help is derived from ads or referral packages, the place indicated. Any third celebration providing or advertising does not constitute an endorsement. Disabled World is an independent disability community established in 2004 to offer disability news and knowledge to individuals with disabilities, seniors, their household and/or carers.

    ReplyDelete

Please do not Enter any spam link in the comment box