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

There are two lights one is green another one is red. green blinks 2 times per a minute, red blinks 3 times per 2 minutes. If two lights are start at same time how many time they blink together in 1 hours.

7 Answers   Zoho,


How many such pairs of letters are there in the word STAINLESS each of which has as many letters between them in the word as they have in the English alphabet, in the same sequence? (a) Two (b) Three (c) Four (d) Five (e) None of these

29 Answers   Accenture, Banking, BSRB, Central Bank of India, CTS, Fresh, IBPS, iGate, Karur Vysya Bank KVB, Kekran Mekran, L&T, LIC, Pallavan Grama Bank, PP, RBS, State Bank Of India SBI, TCS, Wipro,


Two distinct no's are taken from 1,2,3,4......28. Find the probability that their sum is less than 13

0 Answers   CTS,


In town of 500 people, 285 read Hindu and 212 read Indian express and 127read Times of India 20 read Hindu and times of India and 29 read hindu and Indian express and 35 read times of India and Indian express. 50 read no news paper. Then how many read only one paper?

12 Answers   Cognizant, CTS,


In a lock of 4 rings there r five characters how many unsuccessful attempts can be made ?

0 Answers   Godrej,






If "basis points" are defined so that 1 percent is equal to 100 basis points, then 75.5 percent is how many basis points greater than 65.5 percent?

10 Answers   Alcatel, IBM,


If the originally area is 17.83m2 and was increased to 20.36m2, what is the percentage increased?

2 Answers  


This is on letter series like if DEFGHI: ABCDEF then NOPQRS:_______

11 Answers   EA Electronic Arts, TS,


A says Party was held on :Thursday ,May 8th. B says Party was held on :Tuesday,May 10th. C says party was held on :Friday ,June 8th. Given April 1 st was Tuesday.one of A,B,C says 1 correct.one says 1 wrong.and one was completely wrong of date,Month and day. Find the Day the party held.

0 Answers   Infosys,


Difference between the perimeters of two concentric circles is 66. Find the difference between radius.

0 Answers   Cisco,


A boy scores 9 marks more than his friend in an exam and has 56% marks of the total of their marks. Calculate the marks scored by each of them.

0 Answers   CGI,


The average salary of 3 workers is 95 Rs. per week. If one earns Rs.115 and second earns Rs.65 how much is the salary of the 3rd worker.

2 Answers   TCS,


Categories