Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Compile: g++ -o jmphook.exe jmphook.cpp
- #include <Windows.h>
- #include <iostream>
- using namespace std;
- int magicSum(int a, int b) {
- int sum = (a + b) * 2;
- return sum;
- }
- int main() {
- int a, b;
- cout << "Enter first int: ";
- cin >> a;
- cout << "Enter second int: ";
- cin >> b;
- cout << "Magic sum is: " << magicSum(a, b) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment