This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
Overview
Download & View Algoritmo Con Vector.docx as PDF for free.
Inicio N=0 P=0 I=0 Inicializar X=1, vector [20] tipo entero Hacer mientras X<21 6.1 pedir numero N 6.2 Analizar residuo de N/2 6.2.1 Si el residuo de E/2=1 6.2.1.1 sumas P+1 6.2.2 Si el residuo de E/2=0 6.2.2.1 Sumar I+1 6.3 Asignar Vector [X-1]=E 6.4 Incrementar X=X+1 Presentar vector [X] Mostrar resultado P Mostrar resultado I Fin