а), б)
var a, b, c: char;
begin
writeln('введите 3 символа');
readln(a, b, c);
writeln('результат сцепления: ', a+b+c);
if a> b then writeln(a,'> ', b);
if a> c then writeln(a,'> ', c);
if a=b then writeln(a, '=', b);
if a=c then writeln(a, '=', c);
if a< b then writeln(a, '< ', b);
if a< c then writeln(a, '< ', c);
if b> c then writeln(b, '> ', c);
if b< c then writeln(b, '< ', c);
end.
в)
var a, b: char;
begin
writeln('введите 2 символа');
readln(a, b);
if a> b then writeln(b,' ', a);
if a< b then writeln(a,' ', b);
if a=b then writeln(a,' ', b);
end.
если правильно дай лутший ответ
#include < iostream>
#include < array>
#include < algorithm>
#include < random>
#include < iterator>
const size_t size_matrix = 5;
int main()
{
std: : random_device random;
std: : mt19937 generator(;
std: : uniform_real_distribution< float> dist(1.0, 100.0);
std: : array< float, size_matrix> matrix[size_matrix];
for (size_t i = 0; i < size_matrix; i++)
{
std: : for_each(matrix[i]. matrix[i]. [& generator, & dist](auto& var)
{
var = dist(generator);
});
}
for (size_t i = 0; i < size_matrix; i++)
{
std: : copy(matrix[i]. matrix[i].
std: : ostream_iterator< float> (std: : cout, " "));
std: : cout < < std: : endl;
}
std: : cout < < "result: " < < std: : endl;
for (size_t i = 0; i < size_matrix; i++)
std: : cout < < matrix[i][i] < < std: : endl;
std: : system("pause > > void");
return 0;
}
Поделитесь своими знаниями, ответьте на вопрос: