Why this code is not working ?
#include <iostream>
using namespace std;
int sum(int a, int b) // int add_two_integers(int value_one, int value_two)
{
return a+b;
}
int main()
{
cout << sum(10, 5)*2;
return 0;
}
Last edited on
What error are you getting?
thank u very much
q: where I add the code u gave me ?
I put it like the following :
#include <iostream>
using namespace std;
int sum(int a, int b) // int add_two_integers(int value_one, int value_two)
{
return a+b;
}
int main()
{
int pause;
cin >> pause;
cout << sum(10, 5)*2;
return 0;
}
I will check enshallah
Anyhow
thank u 4 your effort