Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // abc.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7. extern "C" double func(double, double, double);
  8. extern "C" double func1(double, double, double);
  9. int main() {
  10. double a, b, k, x1, x2;
  11. cout << "a= ";
  12. cin >> a;
  13. cout << "b= ";
  14. cin >> b;
  15. cout << "c= ";
  16. cin >> k;
  17. x1 = func(a, b, k);
  18. cout << x1 << endl;
  19. x2 = func1(a, b, k);
  20. cout << x2;
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement