Write a C++ function named addNumbers that takes two integer parameters and returns their sum.
Functions
Function basics
Report a typo
Sample Input 1:
8 11Sample Output 1:
19Write a program in C++
#include <iostream>
int main() {
std::cout << addNumbers(a, b);
return 0;
}
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.