what's wrong with this code? It's supposed to get a digit from me, then show all the numbers between 100 & 1000000 containing that digit...
#include <stdio.h>
int main () {
int n,m;
puts("Enter your digit:\n");
scanf("%d\n", n);
int j=100;
while (j<=1000000) {
m=10;
if (j%m==n) {printf("%d\n",j);}
while (j/m>=1) {
if ((j/m)%10==n) {printf("%d\n",j);}
m=m*10;}
j+=1;}
return 0;
}