#include <iostream>
#include <cstdlib>
#include <cmath>
#define pi 3.14
using namespace std;
int main()
{
float a, b, S; // прямоугольник(данные)
float R, H, V; // цилиндр(данные)
//ввод данных//
cout << "Input the length of rectangle: "; cin >> a;
cout << "Input the width of rectangle: "; cin >> b;
cout << "Input the radius of cylinder: "; cin >> R;
cout << "Input the height of cylinder: "; cin >> H;
//ввод данных//
//вычисление//
S = a * b;
V = pi * pow(R,2)* H;
//вычисление//
//вывод в консоль//
cout << "Area of rectangle = " << S << endl;
cout << "Volume of cylinder = " << V << endl;
//вывод в консоль//
system("pause"); // остановка консоли
return 0;
}
Program Pro1;
<span>type Date = record
day : 1..31;
mounth : 1..12;
year : integer;
end;
Person = record
SurnameName : string;
Birthday : date;
end;
<span>ListOfPeople = array [1..50] of person;
var</span></span>
People: ListOfPeople;
JoungHuman: Integer;
i, JoungHumanIndex: Byte;<span>
begin
for i:=1 to 50 do
begin</span>
<span>Write('<span>Human '+IntToStr(i)+':')
</span>Write('Input </span>Surname and <span>Name:')
</span>ReadLn(People[i].SurnameName);
Write('Input Birthday date(day, mounth, year)<span><span>:')
</span>Read(People[i].</span>Birthday.day, People[i].Birthday.mounth, <span><span>People[i].Birthday.year);
</span>end;
//
</span><span>JoungHumanIndex:=1;
//
</span>JoungHuman:=People[1].Birthday.day + People[1].Birthday.mounth*13 + People[1].Birthday.year<span><span> * 32 * 13;
</span>for i:=2 to 50 do
if </span><span>JoungHuman> People[i].Birthday.day + People[i].Birthday.mounth*13 + People[i].Birthday.year<span> * 32 * 13 then
begin</span></span>
//
JoungHumanIndex:=i;
//
<span><span>JoungHuman:=People[i].Birthday.day + People[i].Birthday.mounth*13 + People[i].Birthday.year * 32 * 13;
end;</span>
</span>
<span>WriteLn('Most joung human: '+</span>People[JoungHumanIndex]<span><span><span>.<span>SurnameName</span></span>);
</span>end.</span>
Где задача ,я немогу понять?