601legend

Untitled

May 23rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3. using namespace std;
  4.  
  5. extern "C"
  6. {
  7. void funk();
  8. int a, b, rez;
  9. }
  10.  
  11. void FuncC(void)
  12.  
  13. {
  14. if (a < b)
  15. rez = (64 / b - a);
  16. else if (a == b)
  17. rez = 88;
  18. else
  19. rez = (a - 99) / b;
  20. cout << "C++:";
  21. cout << "rez=" << rez << endl;
  22. }
  23.  
  24. void FuncASM()
  25. {
  26. funk();
  27.  
  28. cout << "ASM:";
  29.  
  30. cout << " rez=" << rez << endl;
  31. }
  32.  
  33. int main()
  34. {
  35. cout << "Input a: "; cin >> a;
  36.  
  37. cout << "Input b: "; cin >> b;
  38.  
  39.  
  40. FuncC();
  41.  
  42.  
  43. FuncASM();
  44. system("pause");
  45. return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment