Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int n;
  4.  
  5. int main()
  6. {
  7. cin >> n;
  8. cout << (n*(n-3))/2; //diagonale
  9. cout << endl << 180*(n-2); // suma unghiuri
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement