#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int array[] = {22, 40, 10, 7, 12};
sort(array, array + 5);
for (int i = 0, i < 5; i++) {
cout << array[i] << " ";
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Написано на языке C++
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int array[] = {22, 40, 10, 7, 12};
sort(array, array + 5);
for (int i = 0, i < 5; i++) {
cout << array[i] << " ";
}
return 0;
}