Guest User

Untitled

a guest
May 16th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. //somma ridotta compito
  2. #include <iostream>
  3. #include <cmath>
  4. using namespace std;
  5. struct rect
  6. {
  7.     double x;
  8.     double y;
  9. };
  10. struct polar {
  11.     double r;
  12.     double theta;
  13. };
  14. int main ()
  15. {
  16.     double a;
  17.     double b;
  18.     cout << "inserisci coordinata x ";
  19.     cin >> a;
  20.     cout << "inserisci coordinata y ";
  21.     cin >> b;
  22.     rect point = {a, b};
  23.     return 0;
  24. }
Add Comment
Please, Sign In to add comment