/* Escrito por Miguel Cantillana <mcantillana@portal53.cl>	
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with main.c; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
 */

/*Ejemplo que Invierte un vector de numeros*/


#include <stdio.h>
#define MAX 5


int main(){

	int vector[MAX];
	int vector_inv[MAX];
	int i,l;
	for (i=0;i<MAX;i++){	
		printf("Vector[%d]: ",i);
		scanf("%d",&vector[i]);
	}
	
	l	=	MAX;
	for (i=0;i<MAX;i++){	
		vector_inv[i]	=	vector[--l];
		//l--;
	}
	
	for (i=0;i<MAX;i++){	
		printf("\nVector_INV[%d]: %d\n",i,vector_inv[i]);
	}	
	return 0;
}
