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.
0 Comments
Please do not Enter any spam link in the comment box