Advertisement
SteelK

Untitled

Mar 24th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     setlocale(0, "");
  10.  
  11.     cout << "Введите А" << endl;
  12.     int  A;
  13.     cin >> A;
  14.  
  15.     int *ukA = &A;
  16.     int *d = new int;
  17.     cout << "Введите B" << endl;
  18.     cin >> *d;
  19.    
  20.     //cout << *a << endl;
  21.     //cout << *d << endl;  
  22.     cout << (3 * (*ukA)*(*d) + 7 * (*d)*(*d)) << endl;
  23.     delete[] d;
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement