using System;
namespace znanja
{
class Program
{
static void Main(string[] args)
{
int num = int.Parse(Console.ReadLine());
int[] array = new int[num];
array = Array.ConvertAll(Console.ReadLine().Split(' ', StringSplitOptions.RemoveEmptyEntries), int.Parse);
int count = 0;
for (int i = 0; i < num; i++)
{
if (array[i] > 0) count++;
}
Console.WriteLine(count);
}
}
}
S - площадь кольца
Взято число Пи, равное 3,14.
Язык программирования: Паскаль
var
S, r1, r2 : real;
begin
readln (r1);
readln (r2);
S := 3.14 * (SQR(r1) - SQR(r2));;
writeln (S);
end.
Объяснение: