#include "stdio.h"
#include "stdlib.h"
int main(){
int amount = 0;
int mas[amount];
int temp;
printf("Input capacity of massiv: "); scanf("%d",&amount);
for(int i = 0 ; i < amount; ++i){
printf("Element [%d] = ",i+1); scanf("%d",&mas[i]);
}
for(int i = 0; i < amount/2; ++i){
temp = mas[amount-i-1];
mas[amount-i-1] = mas[i];
mas[i] = temp;
for(int i = 0; i < amount; ++i){
printf("%d ", mas[i]);
system("pause");
return 0;
#include "stdio.h"
#include "stdlib.h"
int main(){
int amount = 0;
int mas[amount];
int temp;
printf("Input capacity of massiv: "); scanf("%d",&amount);
for(int i = 0 ; i < amount; ++i){
printf("Element [%d] = ",i+1); scanf("%d",&mas[i]);
}
for(int i = 0; i < amount/2; ++i){
temp = mas[amount-i-1];
mas[amount-i-1] = mas[i];
mas[i] = temp;
}
for(int i = 0; i < amount; ++i){
printf("%d ", mas[i]);
}
system("pause");
return 0;
}