Want this question answered?
Be notified when an answer is posted
The smallest even 6-digit number is 100,000 .If you also want the ones digit to be twice the ten's digit, then the smallest even 6-digitthat satisfies that additional requirement is 100,021.
Take the smallest 6-digit even number, then subtract one from it.
108 is the smallest 3-digit number divisible by 2,3,4 & 6
012345
0
100.
The smallest even 6-digit number is 100,000 .If you also want the ones digit to be twice the ten's digit, then the smallest even 6-digitthat satisfies that additional requirement is 100,021.
what is the difference between the largest 8-digit number and the smallest 6-digit number
there could be a part in it like this: int num, digit; int count [10]; do { digit = num%10; num != 10; ++count[digit]; } while (num);
Take the smallest 6-digit even number, then subtract one from it.
102345
Since there are only five different digits, a 6-digit number can only be generated if a digit can be repeated. If digits can be repeated, the smallest 6-digit number is 111111.
100000
main() { int num=0xABCD; printf("%x\n",num); int rev=0x0; int digit=0x0; while(num!=0x0) { digit=num%0x10; rev = rev*0x10 +digit; num=num/0x10; } printf("%x\n",rev); }
108 is the smallest 3-digit number divisible by 2,3,4 & 6
Oh, dude, the smallest odd 6-digit number is 100001. It's odd because it ends in 1, and it's the smallest 6-digit number because it starts with 1 and has five zeros after it. So, like, there you have it!
012345