# C++ program to add two integer numbers using function

In the last program [<a href="https://nerdutella.com/q1120-C-plus-plus-program-to-add-two-integer-numbers" "="" style="box-sizing: border-box; color: rgb(0, 0, 255);" data-mce-href="https://nerdutella.com/q1120-C-plus-plus-program-to-add-two-integer-numbers">C++ program to add two integer numbers], we discussed **how to take input and find the sum of two integer numbers?**

In this program we are doing the same but using a user defined function, **this program will take two integer numbers are calculate the sum/addition of them using a user defined function**.

The function addition is used to calculate addition of the numbers, in this program we will pass the entered integer numbers and function will return the addition of the numbers.

## Program to add two numbers using function in C++

Output

need an explanation for this answer? contact us directly to get an explanation for this answer