int main() { int x, y, z; std::cin >> x >> y >> z; void (*ptr)(int *x, int *y, int *z); ptr = sort; (*ptr)(&x, &y, &z); std::cout << x << " " << y << " " << z << std::endl; system("pause"); return 0; }
inline void sort(int *a, int *b, int *c) { if (*b < *a) std::swap(*a, *b); if (*c < *a) std::swap(*a, *c); if (*c < *b) std::swap(*b, *c); }
int main() { int x, y, z; std::cin >> x >> y >> z; void (*ptr)(int *x, int *y, int *z); ptr = sort; (*ptr)(&x, &y, &z); std::cout << x << " " << y << " " << z << std::endl; system("pause"); return 0; }
inline void sort(int *a, int *b, int *c) { if (*b < *a) std::swap(*a, *b); if (*c < *a) std::swap(*a, *c); if (*c < *b) std::swap(*b, *c); }
var
n, i: Integer;
begin
Write('Введите число: ');
readln(n);
for i := 1 to 10 do
Write(n, '*', i, '=', n * i, #10);
end.