#include "pch.h"
#include <iostream>
#include <clocale>
using namespace std;
int main() {
setlocale(LC_ALL, "");
int arr[10];
cout << "Заполните массив: ";
for (int i = 0; i < 10; i++) {
cin >> arr[i];
}
arr[i] = 0;
cout << "Новый массив: ";
cout << " " << arr[i];
return 0;
begin
var a := ReadArrInteger(10);
for var i := 0 to 9 do
a[i] := 0;
a.Println;
end.
#include "pch.h"
#include <iostream>
#include <clocale>
using namespace std;
int main() {
setlocale(LC_ALL, "");
int arr[10];
cout << "Заполните массив: ";
for (int i = 0; i < 10; i++) {
cin >> arr[i];
}
for (int i = 0; i < 10; i++) {
arr[i] = 0;
}
cout << "Новый массив: ";
for (int i = 0; i < 10; i++) {
cout << " " << arr[i];
}
return 0;
}
begin
var a := ReadArrInteger(10);
for var i := 0 to 9 do
a[i] := 0;
a.Println;
end.