let say i have two loops and i want to check if the varibles from one loop can evenly divided like this

how can i make the(x%y==0) condition to be checked for every y condtion ranging fromCode:for (y=1;y<5;y++){ for (x=0;x<1000;x++){ if (x%y==0){ printf("this one: %d \n",x)}}}

1 to 5

i mean how can it make it find every number that can be eveny divided to all number ranging from 1 to 5

thanks