Write a C program that reads two integers and prints their sum by calling a user-defined function.
- Declare a function prototype named
add. - Define the
add()function. - Read two integers in
main(). - Call
add()frommain(). - Print only the returned result.
Sample Input 10 20
Sample Output 30
- Function definition: 2
- Function call: 2
- Compilation: 2
- Visible test: 2
- Hidden tests: 2