diff --git a/New Folder/calculator.cpp b/New Folder/calculator.cpp new file mode 100644 index 0000000..de3baa4 --- /dev/null +++ b/New Folder/calculator.cpp @@ -0,0 +1,31 @@ +#include +using namespace std; + +int add(int a, int b) +{ + return a + b; +} + +int subtract(int a, int b) +{ + return a - b; +} +int multiply(int a, int b) +{ + return a * b; +} +int divide(int a, int b) +{ + return a / b; +} + +int main() +{ + int a, b; + cin >> a >> b; + cout << add(a,b) << endl; + cout << subtract(a,b) << endl; + cout << multiply(a,b) << endl; + cout << divide(a,b) << endl; + return 0; +} \ No newline at end of file diff --git a/New Folder/class.cpp b/New Folder/class.cpp new file mode 100644 index 0000000..26fcc17 --- /dev/null +++ b/New Folder/class.cpp @@ -0,0 +1,11 @@ +#include +using namespace std; + + + +int main() +{ + cout << "Hello, World!" << endl; + cout << "feature one" << endl; + return 0; +} \ No newline at end of file