#include <iostream>
int main(void)
{
int i, n;
printf("how number do you want to reverse?");
scanf_s("%d", &n);
int a[n];
printf("enter %d number:", n);
for (i = 0; i < n; i++)
scanf_s("%d", &a[i]);
printf("in rever order:");
for (i = n - 1; i >= 0; i--)
printf("%d", a[i]);
printf("\n");
return 0;