I don't think you need loops for this.... just a bit of maths to understand whats going on. And please use code tags for your code and is it really necessary to use ALL CAPS IN YOUR TITLE?
I'm assuming you are talking about regular polygons
First you need to check if input size is greater than 2 (As you can't have a closed shape with 2 sides). if condition for that...
Now to get the sum of the interior angle. Think about the sum of interior angles in some shapes: Triangle = 180, Square = 360, Pentagon = 540..what are you doing each time? Adding 180. So in general to get the sum of an n-sided polygon you could do something like this. int Interior_sum = (n-2)*180
I'll leave you to figure out the rest for yourself
Kindof don't see the point in using loops here.....
Everything to be calculated can be done with single statements ...
Perhaps your loop can be to keep adding 180 for each increase in "n". Pretty pointless doing that but it HAS to be a loop you create lots of loops for no reason.
Oh you want to find the sum of angles/angles for polygons up to n. You were making it sound like you only had to calculate the angles for 1 polygon of size n.
Yeah you would use a loop for this so something like
1 2 3 4 5
for(int i = 3; i <= n; i++)
{ *
* All your calculations/print statements here
*
}