Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // abc.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- extern "C" double func(double, double, double);
- extern "C" double func1(double, double, double);
- int main() {
- double a, b, k, x1, x2;
- cout << "a= ";
- cin >> a;
- cout << "b= ";
- cin >> b;
- cout << "c= ";
- cin >> k;
- x1 = func(a, b, k);
- cout << x1 << endl;
- x2 = func1(a, b, k);
- cout << x2;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement