hola a todos, me gustaria que me ayudaran con este nuevo problema que tengo, ya resolvi el anterior (GRAX A SPIDER_BOY, POR EL RESOLVI EL PROBLEMA) lo que me intriga ahora es como paso este codigo a diagrama de flujo, mas que tomo a Raptor, se me imposible, y lo peor es que este trabajo lo tengo que entregar hoy a las 11:30 pm ayuda
Código C++:
Ver original#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
int Posicion[10];
int Arreglo1[10];
int Arreglo2[10];
int Arreglo3[10];
int random;
int m=1;
int m2=1;
bool existe = false;
cout<<"Posicion"<<setw(13)<<"Arreglo1"<<setw(13)<<"Arreglo2"<<endl;
for(int i=1;i<11;i++){
Arreglo1
[i
]=(1+rand()%15);}
do {
for(int j = 1; j < 11; j++) {
if(Arreglo1[j] == random) {
existe = true;
}
}
if(!existe) {
Arreglo1[m] = random;
m++;
}
existe = false;
} while(m<11);
for(int i=1;i<11;i++){
Arreglo2
[i
]=(1+rand()%15);}
do {
for(int j = 1; j < 11; j++) {
if(Arreglo2[j] == random) {
existe = true;
}
}
if(!existe) {
Arreglo2[m2] = random;
m2++;
}
existe = false;
} while(m2<11);
for(int j=1;j<11;j++)
cout<<setw(8)<<j<<setw(13)<<Arreglo1[j]<<setw(13)<<Arreglo2[j]<<endl;
cout<<"Posicion"<<setw(13)<<"Arreglo3"<<endl;
int i=1;
int k=10;
while(i<11){
Arreglo3[i]=Arreglo1[i]+Arreglo2[k];
i+=1;
k-=1;
}
for(int j=1;j<11;j++)
cout<<setw(8)<<j<<setw(13)<<Arreglo3[j]<<endl;
return 0;
}
PD:GRACIAS A SPIDER_BOY