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
Current/most recent employer (Please state full names and address including Country and post code) Current Position Held When would you be available to start work? ONLINE INTERVIEW [INSTRUCTIONS: Give brief answers to all the under listed questions] QUESTIONS ANSWER SPACE 1) What are your years of experience? 2) How do you approach a technical problem? Give an example. How long do you think it would be before you will make a significant contribution to the team/company?
If p/q = 5/4 , then 2p+q= ?
In a arithmetic reason 10,9,60,90,70 and 66.. .whats the next number with conclusion
If Ever + Since = Darwin then D + a + r + w + i + n is ?
5 thieves stole diamonds in following way 1st stole half +2 2nd remaining half +2. for 5th there was no diamond how many diamond were there initially
Difference between the perimeters of two concentric circles is 66. Find the difference between radius.
A beats B by 10 meters and B beats C by 15 metres the A beats C by
Can you find out what day of the week was January 12, 1979?
Factorize y**2 + 8y - 48 =0
A clock is late by 1 minute 27 seconds in a month. Then how much will it be late in 1 day?
Find the value of @@+25-++@16, where @ denotes "square" and + denotes "square root".
Two circles , one circle is inscribed and another circle is N outscribed over a square. What is the ratio of area of inner to outer circle.
two trees are there. one grows at 3/5 of the other. in 4 years, total growth of trees is 8 ft. what growth will smaller tree will have in 2 years.
1,2,3,4,5,6,7,8,9 station. route between any 2 station is there only if the 2 digit nob. is divisible by 3. e.g. route exist between 1 to 2 because 12 is divisible by 3 how many station have routes to 8 either direct or indirect
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.