Problem: 2058 - Triangles and Regular Polygons
Solution:
#include<bits/stdc++.h> using namespace std;int main() {int n;cin>>n;cout<<n-2<<endl;return 0;}
Output Samples
| Input | Output |
| 3 | 1 |
| 4 | 2 |
| 5 | 3 |
Code · Faith · Curiosity
cpp �� 2023-07-18 22:01:30
Problem: 2058 - Triangles and Regular Polygons
Solution:
#include<bits/stdc++.h> using namespace std;int main() {int n;cin>>n;cout<<n-2<<endl;return 0;}
Output Samples
| Input | Output |
| 3 | 1 |
| 4 | 2 |
| 5 | 3 |
Post Visited: 441 times
Categories: cpp
No comments yet. Be the first to comment!