Answer:
It can be 100001, 100000,000001,000000
Hence, answer is 4.
its also can be found through 2C2 *2 = 2!/0! *2 =2*2 =4
Explanation:
The answer is straight forward, we have 2 empty places and we can select from 2 items, and hence its 2C2, and now we can arrange them as well, and since we can arrange in 2 ways, hence a total number of possibility = 2 * 2C2 = 4, which is the required answer.
int counter = 0;
int num = 0;
string output = "";
while (counter < 3) {
num = num * 1;
counter = counter + 1; }
output = Convert.ToString(num);
Output:
Counter = 0
num = 0 * 1 - - > num = 0
Counter = 1
num = 0 * 1 - - > num = 0
Counter = 2
num = 0 * 1 - - > num = 0
Counter = 3 (break)
num = 0
output = "0"
I think Face book hope that helped XD