Bdda
#include <stdio.h>
main(){
int i,nv,n,x,z,may,p,cf,c;
float y;may=0;
p=0;
printf("Ingrese el numero: ");
scanf("%d", &nv);for(i=1;i<=nv;i++){
printf("\nIngrese numero : ");
scanf("%d", &x);
n =n/2;
cf = 0;
for(c=1;c<=n;c++){
y=(x*1)/c;z=x/c;
if(y==z){
printf("\t%d",c);
cf=cf+1;}
printf("\n es un factor");
cf=cf+1;printf("\t%d", cf);
if(cf==2){
printf("\n Es primo");
p=p+1;if(may<x){
may=x;
}
}else{printf(" \tNo es primo");
}
} //for del c
} //for del iprintf("\t%d", p);
printf(" \nson numeros primos");
printf(" \nEl numero primo mayor fue: ");...
Regístrate para leer el documento completo.