Input an array and then print the repeating characters??
Example:
Input:1,3,23,11,44,3,23,2,3.
Output:3,23
plz help me.... i want a code of it. In C language.
Answer Posted / saurabh singh
n = [int(x) for x in input().split()]
for i in range(len(n)):
for j in range(i+1, len(n)):
if n[i] == n[j]:
print(n[i])
#saurabhsingh
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
A sales person multiplied a number and get the answer is 3, instead of that number divided by 3. What is th answer he actually has to get? 1/3
Four circles are drawn from the corners of a square of area 49 cm2. Find the area of 4 circles outside the square (they didn't mention that circles have radius=1/2 side of a square)?
There are 4 married couples out of which 3 a group is needed . But thier should not be his of her spouse .How many groups are possible ?
3 red and 4 blue balls are in a basket. A member of PPTeam is drawing balls from the basket.What is the probablity of getting the 3 red balls simultaneously?
In the word ECONOMETRICS, if the first and second , third and forth ,forth and fifth, fifth and sixth words are interchanged up to the last letter, what would be the tenth letter from right?
what ia tha c++ code to find the position of prime numbers in prime number series??
Two trains move in the same direction at 50 kmph and 32 kmph respectively. A man in the slower train observes the 15 seconds elapse before the faster train completely passes by him.
25 stations ,24 stations are inbetween- - - - - how many tickets should be required.
A coffee shop blends 2 kinds of coffee,putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a gm.If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade,how much will the shop save in blending 100 gms.
Find the distance when they meet from starting point.
hi.... i need tamil nadu SI police modal question paper can an one help me my mailing id is kettaven46@gmail.com
A and B decide to speak truth or lie on a day. Another person asks A if he is saying truth or lie. B listens to A whatever he answers. Now the person asks B what A had told. B replies as " A has told that he is a liar". What does B say?
In a fraction, if 1 is added to both the numerator at the denominator, the fraction becomes 1/2. If numerator is subtracted from the denominator, the fraction becomes 3/4. Find the fraction.
If the vertex (5,7) is placed in the memory. First vertex (1,1) ?s address is 1245 and then address of (5,7) is ----------
Conversation between two mathematicians: first : I have three children. The product of their ages is 36 .. If you sum their ages . it is exactly same as my neighbour's door number on my left. The second mathematician verifies the door number and says that the not sufficient . Then the first says " o.k one more clue is that my youngest is the youngest" Immediately the second mathematician answers . Can you answer the question asked by the first mathematician? What are the children ages?