https://www.hackerrank.com/challenges/arrays-ds/problem
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int n,a[10000],j,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(j=n-1;j>=0;j--)
{
printf("%d ",a[j]);
}
return(0);
}
PLEASE DROP ANY QUERY
ReplyDelete