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
If a square is formed by the diagonal of the square as an edge, what is the ratio between the area?
The average age of 10 members of a committee is the same as it was 4 years ago, because an old member has been replaced by a young member. Find how much younger is the new member ?
Q.19 Alok and Bhanu play the following min-max game. Given the expression N=9+X+Y–Z where X, Y and Z are variables representing single digits (0 to 9), Alok would like to maximize N while Bhanu would like to minimize it. Towards this end, Alok chooses a single digit number and Bhanu substitutes this for a variable of her choice (X, Y or Z). Alok then chooses the next value and Bhanu, the variable to substitute the value. Finally Alok proposes the value for the remaining variable. Assuming both play to their optimal strategies, the value of N at the end of the game would be 27 18 20 Answer is: 20 can someone plzzzzzzzzz tell me how this answer is calculeted???
1/3 rd of the contents of a container evaporated on the 1 st day. 3/4 th of the remaining contents of the container evaporated the second day. what part of the contents of the container are left at the end of the second day.
Everyday in his business a merchant had to weigh amounts from 1 kg to 121kgs, to the nearest kg.What are the minimum number of weight required and how heavy should they be?
two workers can type two pages in two minuets then how many persons can type 18 pages in 6 minuets
A beats B by 10 meters and B beats C by 15 meters the A beats C by
A Father Has 7 Pennys With Him And 1 Water Melon Is For 1p, 2chickoos For 1p, 3 Grapes Foe 1p. He Has Three Sons. How Can He Share The Fruits Equally?
A & B are playing a game .There are 8 oranges in a row on the table.one Player can take 1-4 oranges in a pick (a maximum of 4),one who picks the last orange wins the game.'A' plays first How many oranges should he pick first time inorder to win the game.
Please provide me rs aggarwal verbal reasoning book link pleeeeeeeez
What is the height of the cone of diameter 12 cm that is formed after melting a sphere of 6 cm diameter?
How many 1's are there in the binary form of 8*1024 + 3*64 + 3
starting from 2 upto how many numbers we need to check whether 907 is prime or not?
A man said to woman " your only brother's son is my wife'sbrother". How is the woman related to the man's wife..
WHO WAS GIVEN BEST ACTOR AWAR 2010 IN FILM FARE?