using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double l; Console.Write("vvedite d"); int d = Convert.ToInt32(Console.ReadLine()); l = Math.Pow((pi*d),2); Console.WriteLine("l = " + l); Console.ReadKey(); } }
//PascalABC.NET (версия 3.1, сборка 1198 от 11.03.2016) var a,n,k,i,j,s:integer; begin writeln('Количество учеников и количество оценок'); readln(n,k); for i:=1 to n do begin for j:=1 to k do begin write('Ученик № ',i, ' оценка № ',j,' = '); readln(a); s:=s+a; end; end; println('Средняя оценка группы ',s/(n*k):6:3); end.
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
double l;
Console.Write("vvedite d");
int d = Convert.ToInt32(Console.ReadLine());
l = Math.Pow((pi*d),2);
Console.WriteLine("l = " + l);
Console.ReadKey(); }
}