using System;
namespace MyCompiler {
class Program {
public static int innerSum(int n) {
return (n-2)*180;
}
public static int inner(int n) {
return (n-2)*180/n;
}
public static int outer(int n) {
return 360/n;
}
public static void Main(string[] args) {
Console.WriteLine("0 : 내각의 합 구하기 /n 1 : 한 내각의 크기 구하기 /n 2 : 한 외각의 크기 구하기");
int cmd = int.Parse(Console.ReadLine());
int a = int.Parse(Console.ReadLine());
if (cmd == 0) {
Console.WriteLine(innerSum(a));
} else if (cmd == 1) {
Console.WriteLine(inner(a));
} else if (cmd == 2) {
Console.WriteLine(outer(a));
} else {
Console.WriteLine("who is bro");
}
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: