Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int n;
- int main()
- {
- cin >> n;
- cout << (n*(n-3))/2; //diagonale
- cout << endl << 180*(n-2); // suma unghiuri
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement