Dec 27, 2014 at 3:43pm
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 Dec 27, 2014 at 3:43pm
Dec 27, 2014 at 4:06pm
What error are you getting?
Dec 28, 2014 at 8:23pm
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;
}
Dec 29, 2014 at 5:45pm
I will check enshallah
Anyhow
thank u 4 your effort