Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- extern "C"
- {
- void funk();
- int a, b, rez;
- }
- void FuncC(void)
- {
- if (a < b)
- rez = (64 / b - a);
- else if (a == b)
- rez = 88;
- else
- rez = (a - 99) / b;
- cout << "C++:";
- cout << "rez=" << rez << endl;
- }
- void FuncASM()
- {
- funk();
- cout << "ASM:";
- cout << " rez=" << rez << endl;
- }
- int main()
- {
- cout << "Input a: "; cin >> a;
- cout << "Input b: "; cin >> b;
- FuncC();
- FuncASM();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment