<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Таблицы</title>
<style type="text/css">
TABLE {
border: 7px solid #FF0000;
}
TD, TH {
border: 3px double #FF0000;
</style>
</head>
<body>
<table border="1" cellpadding="4" cellspacing="0" >
<tr>
<td rowspan="2" align="center">Большая ячейка А</td>
<th align="center">Маленькая ячейка 1</th><th align="center">Маленькая ячейка 2</th>
</tr>
<th colspan="2" align="center">Большая ячейка B</th>
</table>
</body>
</html>
Объяснение:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Таблицы</title>
<style type="text/css">
TABLE {
border: 7px solid #FF0000;
}
TD, TH {
border: 3px double #FF0000;
}
</style>
</head>
<body>
<table border="1" cellpadding="4" cellspacing="0" >
<tr>
<td rowspan="2" align="center">Большая ячейка А</td>
<th align="center">Маленькая ячейка 1</th><th align="center">Маленькая ячейка 2</th>
</tr>
<tr>
<th colspan="2" align="center">Большая ячейка B</th>
</tr>
</table>
</body>
</html>
Объяснение:
var
s: string;
i, count: integer;
begin
writeln('Vvedite stroky: ');
readln(s);
for i := 1 to length(s) - 2 do
if copy(s, i, 3) = 'abc' then
count := count + 1;
writeln('Kol-vo: ', count);
end.
2.
var
s1, s2: string;
i, len1, len2: integer;
begin
writeln('Vvedite stroky 1: ');
readln(s1);
writeln('Vvedite stroky 2: ');
readln(s2);
len1 := length(s1);
len2 := length(s2);
if len1 > len2 then writeln('1 stroka dlinnee')
else if len1 < len2 then writeln('2 stroka dlinnee')
else writeln('dlini strok ravnie')
end.
3.
var
s1, s2, s3: string;
begin
writeln('Vvedite stroky 1: ');
readln(s1);
writeln('Vvedite stroky 2: ');
readln(s2);
s3 := s1[1] + s1[2] + s2[1] + s2[2];
writeln('Novaja stroka: ', s3);
end.