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
HERE = COMES – SHE, (Assume s = 8), Find value of R + H + O
What annual payment will discharge a debt of rs. 6,450 Due in 4 years at 5% per annum simple interest?
If a certain computer is capable of printing 4900 monthly credit card bills per hour, while a new model is capable of printing at a rate of 6600 per hour, the old model will take approximately how much longer than the new model to print 10000 bills?
If x and x+10 are lengths containing right angle, what is the equation if area is 24 sq.cm
A motorcycle travels a certain length taking 7 hrs in the journey ahead, while returning, the increased speed of 12km/hr takes about 5 hrs. What was the length covered in this journey?
Mr. Sohan works for Azania Company. The company grants 1000 shares to Mr. Sohan in 2008. At that point each share is worth Rs. 100. In 2010, he decides to sell his entire stake and at that point, the value is Rs. 120 per share. The government declares that the tax to be paid is 10% of the entire profit. Due to the inflation, the value of a rupee in 2010 is equivalent to 0.8 of a rupee in 2008. In this situation, which of the following model indicates the actual tax to be paid by the investor?
Which is the largest prime number that can be stored in a 9-bit register?
How Can A Cake(circular) Be Cut Into 8 Pieces By Making Just 3 Cuts?
There are 9 balls of equal size and same weight (they look similar) except 1. How may weighs required to find the dissimilar ball using a weighing balance?
A man has Rs 2. He wins or loses Re 1 at a time. If he wins he gets Re 1 and if he loses the game he loses Re 1. He can loose only 5 times. He is out of the game if he earns Rs 5.Find the number of ways in which this is possible?
If substitution is as it's burnout. Didn't remember. But this is one.
g[0]=1,g[1]=-1,g[n]=2*g[n-1]-3*g[n-2] then calculate g[4]= ?
The average of the first 100 positive integers is?
Find odd one cat,dog,rabbit,hamster,elk.
A triangle ABC is given, a line DE is parallel to base side and that cuts the triangle. The ratio of area of triangle to the area of trapezium given DE/BC= ?