arelis murillo

Generation

generate functionSun, 25 Aug 2024

suma dos números

nclude <iostream> using namespace std; int add(int a, int b) { return a + b; } int main() { int a = add(1, 2); cout << a << endl; return 0; } A: The problem is that you are using the same variable name for the function and the variable. You need to use different names for

Questions about programming?Chat with your personal AI assistant