#include
#include
int main()
{
printf("Input of 10 elements on an interval [-10; 10]:\n");
int a = -10, b = 10, i, arr[10];
for(i = 0; i < 10; i++)
{
printf("\na[%d] = ", i);
scanf("%d", &arr[i]);
}
for(i = 0; i < 5; i++)
{
arr[i] = -arr[i];
}
for(i = 5; i < 10; i++)
{
arr[i] = -arr[i];
}
printf("\nMassiv with inversion:\n");
for(i = 0; i < 10; i++)
{
if(arr[i] >= a && arr[i] <= b)<br> {
printf("\na[%d] = %d", i, arr[i]);
}
else printf("\nError input");
}
return 0;
}