|
|
вернуться в форумI don't know what is the problem somebody know what is the test 3, I don't know what problem I have in my code; here is it #include <stdlib.h> #include <stdio.h> int main(){ int desicion[10]; int exponentes[1000]={0}; int i,j,valor=1; int numeroDivisores=1; int valorIteracion; int impresion; for(i=0;i<10;i++){ scanf("%i",&desicion[i]); valor*=desicion[i]; } i=2; j=0; while(valor!=1){ if(valor%i==0){ exponentes[j]++; valor=valor/i; }else{ i++; numeroDivisores=numeroDivisores*(exponentes[j]+1); j++; } } numeroDivisores=numeroDivisores*(exponentes[j]+1); numeroDivisores%=10; printf("%i\n",numeroDivisores); } |
|
|