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 company installed 36 punching machines at the beginning of the year.In the spring they installed 9 additional m/c's and then discontinued 18 in the fall.How many were still installed at the end of the year?
Two glasses were filled with 1/3 and 1/4 milk. they were filled with water &then mixed in tumbler. what is the percentage of milk in the resultant.
work can be done by 8 men and 10 women in 25 days, the same work can be done by 10 children and 5 women . in how many days 2 children and 3 men
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?
Sita bought a handbag for Rs. 144 and got a percentage of profit equal to the cost price of the handbag. What is the cost price of the handbag?
Six squares of same dimension are kept side by side to make a rectangle with a perimeter of 182 cm. what is the perimeter of each square.
1/8 Is divided by 's' , if 's' is increased by 2 times, what Will be the result.
If m/n = 5/4 , then 2m+n= ?
The number 0.05 is what percent of 20?
5 women given some of their heights(tall,medium,short)Hair( long, plainted),stards(Black or Brown), sari,2 medium,2-short.Tall-no sari.Plainted-medium.Answer the combinations.
how to create the alarm using sql queries.In the sense i need to make the computer to produce beep sound for each 1 minute.(hint: by chr(7) we can produce the beep sound)
If p/q = 5/4 , then 2p+q= ?
In a mixture, R is 2 parts and S is 1 part. In order to make S to 25% of the mixture, how much of R is to added?
A farmer has a farm square of 100 sq.m a cow is tied at one and with a rope of 10m length.assume pi-3.what is the area of land the cow can graze.
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???