We have an increasing sequence in which each element is consist of even digits only (0, 2, 4, 6, 8). How can we find the nth number in this sequence
find the nth number in this sequence
Is
int Code() { k=0; for(i=0;i<=10000;i++) { count=0; n=i; while(n!=0) { c=n%10; n=n/10; if(c%2!=0) { count=1; } } if(count==0) { a[k]=i; k++;} } }