#include <iostream>
using namespace std;
int main()
{
int number, months[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
cout << "Input number of the month: ";
cin >> number;
if ((number >= 1) && (number <= 12)) {
cout << "Number of days is " << months[number - 1];
}
else {
cout << "Input error!";
return 1;
}
return 0;
}
Var a, b, i, c :integer;
begin
<span> read (a, b); </span>// вводим a и b
for i:=1 to 5 do
begin
<span> c:=random(b-a)+a; </span>// присваиваем рандомные числа в заданномпромежутке
<span> writeln (c); </span>// выводим число
end;
<span>end.</span>