arelis murillo

Generation

generate functionFri, 13 Sep 2024

adiciona dos numeros enteros, sumalo y retorna

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

Questions about programming?Chat with your personal AI assistant