#include <iostream>
using namespace std;
int addm(int x, int y)
{
return x + y;
}
int subm(int x, int y)
{
return x - y;
}
int main()
{
int ok, ko, a, b;
cout << "enter two number " << endl;
cout << "ok! enter first number" << endl;
cin >> a;
cout << "ok ! enter second number" << endl;
cin >> b;
ok = addm(a, b);
ko = subm(a, b);
cout << "by adding these two numbers " << ok << endl;
cout << "by substracting these two numbers " << ko << endl;
return 0;
}
Comments
Post a Comment