Código
// TODO code application logic here int x[]= {1,0,1,0}; int y[]= {0,1,0,1}; for (int i = 0; i <x.length;i++){ if(x[i]>y[i]){ }else{ if(x[i]<=y[i]){ } } int nelementos=10,ac=x[i]+y[i], aux; for (int j= 0;j<nelementos;j=j+1){ aux=ac; ac=ac+y[i]; y[i]=aux; } } } }
Mod: Los códigos deben ir en etiquetas GeSHi