1) б или в
2) в
3) г
4) б или в
5) в, наверное
6) г
7) а
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
double x, percent;
cout << "Enter the number: ";
cin >> x;
cout << "Enter the percentage: ";
cin >> percent;
cout << "\n" << percent << " percent of the " << x
<< " = " << (x / 100 * percent) << endl;
return 0;
}
var
s: string;
function Invert(s: string): string;
var
i: integer;
t: string;
begin
t := '';
for i := 1 to length(s) do
t := s[i] + t;
Invert := t;
end;
begin
Write('Введите слово: ');
Readln(s);
s := Trim(s);
s := Uppercase(s);
if Invert(s) = s then
Writeln('Палиндром')
else
Writeln('Не палиндром');
end.