There is a lucky draw held every day.
If there is a winning number eg. 1876, then all possible
numbers like 1867 ,1687,1768 etc are the numbers that match
irrespective of the position of the digits.
Thus all these numbers qualify fr the lucky draw prize.
Assume there is no zero digit in any numbers.
Write a program to show all the possible winning numbers if
a "winningnumber" is passed as an argument to the function.

i want a solution in c/c++ language


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More General Aptitude Interview Questions

In school there are some bicycles and 4 wheeler wagons. One tuesday there are 190 wheels in the campus. How many bicycles are there?

0 Answers   TCS,


Hello , can any one inform me about any good Bank PO training institute at Bangalore.

1 Answers  


Length and breadth of a rectangle are in ratio 7:5. If length is reduced by 5 and breadth by 2, area reduces by 65. Find length and breadth.

0 Answers   Caritor Solutions,


What is the distance travelled by a ball that falls from a height of 8 mts and each time it bounces half the distance back?

0 Answers   CGI,


One passage was on playing cards. know how many diamonds and etc.

0 Answers   Celstream,






find then next series number 5,6,7,8,10,11,14,..?

0 Answers   Accenture,


What is the least number of squares marbles required to pave the floor of a room 15 m 17 cm long and 9 m 2 cm broad?

0 Answers   Cap Gemini,


A moves 3 kms east from his starting point . He then travels 5 kms north. From that point he moves 8 kms to the east.How far is A from his starting point?

0 Answers   Accenture,


How many ewes (female sheep) in a flock of 50 sheep are black? 1. There are 10 rams (male sheep) in the flock. 2. Forty percent of the animals are black. statement 1 alone is sufficient, but statement 2 alone is not sufficient to answer the question statement 2 alone is sufficient, but statement 1 alone is not sufficient to answer the question each statement alone is sufficient statements 1 and 2 together are not sufficient, and additional data is needed to answer the question

0 Answers   Wipro,


There are four dogs/ants/people at four corners of a square of unit distance. At the same instant all of them start running with unit speed towards the person on their clockwise direction and will always run towards that target. How long does it take for them to meet and where?

8 Answers   Microsoft, Panasonic,


judys plans to visit the national gallery once in each month in 2001 except in july and august when she plans to go three times each. a single admission cost $3.5,a pass valid for unlimited visits in any 3 mnth period can be purchasedfor $18,and in annual pass costs $60.what is the least amount in dollars that judy can spend for her intended numbers of visits

4 Answers   Financial Technologies,


In a society of 80 resident families who subscribe newspapers, 60% of them subscribe The Hindu newspaper, 80% of them subscribe regional language newspaper and 70% of them subscribe TOI. How many families could, at the least, be subscribing to all the three newspapers (a) 0% (b) 5% (c) 10% (d) 20%

2 Answers   Mu Sigma,


Categories