Many thanks. It' s fine!
I made some changes for me.
int addNumber(int a, int b)
{
int c;
cout << "enter a" << endl;
cin >>a;
cout << "enter b "<< endl;
cin >> b;
c = a + b;
return c;
}
int main ()
{
int x, y, sum;
sum = addNumber(x,...
User Profile
Collapse
-
int in C++ (newbie)
Help i try to built a function which is a sum of two integers
The result must be an integer !
Check the result...
Any help it 's welcome.
/*************** *************** *************** ***** ********/
#include <iostream>
#include "math.h"
using namespace std;
int add_number(int a, int b, int c)
{
cout << "enter a" << endl;... -
int in C++ (newbie)
Help i try to built a function which is a sum of two integers
The result must be an integer !
Check the result...
Any help it 's welcome.
/*************** *************** *************** *************/
#include <iostream>
#include "math.h"
using namespace std;
int add_number(int a, int b, int c)
{
cout << "enter a" << endl;...
No activity results to display
Show More
Leave a comment: