diff --git a/sum.cpp b/sum.cpp new file mode 100644 index 00000000..33b1d382 --- /dev/null +++ b/sum.cpp @@ -0,0 +1,17 @@ +#include +using namespace std; + +int sum(int x, int y){ + return x+y; +} + +int main(){ + double x; + double y; + cout << "Enter first digit: " << endl; + cin >> x; + cout << "Enter second digit: " << endl; + cin >> y; + cout << "The sum: " << x << " + " << y << "is: " << sum(x, y) << endl; + return 0; +} \ No newline at end of file