Solution of URI 1175::Array change I
Before seeing the solution make sure that you have tried enough. Don’t copy the whole code, just find out the logic. If you feel any problem, you will inform me by comment.
#include <stdio.h>
int main(){
int N[20],i,j=0;
for(i=0;i<20;i++){
scanf("%d",&N[i]);
}
while(i--){
printf("N[%d] = %d\n",j,N[i]);
j++;
}
return 0;
}
No comments