Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- setlocale(0, "");
- cout << "Введите А" << endl;
- int A;
- cin >> A;
- int *ukA = &A;
- int *d = new int;
- cout << "Введите B" << endl;
- cin >> *d;
- //cout << *a << endl;
- //cout << *d << endl;
- cout << (3 * (*ukA)*(*d) + 7 * (*d)*(*d)) << endl;
- delete[] d;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement