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


Please Help Members By Posting Answers For Below Questions

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

800


A man drives at a speed of 40 miles/hr. His wife left 30 mins. late with 50 miles/hr speed. when will they meet ?

1187


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?

791


a father is 30 times more than his son however he will be only thrice as old as the son what is father's present age ?

685


There are 19 horses in a stable. All but eight died. How many will be left in the stable?

814






A 16 stored building has 12000 sq.feet on each floor. Company A rents floors and company B rents 4 floors. What is the number of sq.feet of unrented floor space.

683


A train blows a siren one hour after starting from the station. After that it travels at 3/5th of its speed it reaches the next station 2 hours behind schedule. If it had a problem 50 miles farther from the previous case,it would have reached 40 minutes sooner. Find the distance between the two stations .

667


Technical questions

1379


In a lock of 4 rings there r five characters how many unsuccessful attempts can be made ?

740


Two ladies ,two men sit in north east west south position of rectangular table. Using clues identify their position ?

744


i want rrb tc exam previous pepers

1943


THERE ARE 3 MIXTURES WHEN MIXED IN THE RATIO OF 3:4:5 PRICE WAS 240.WHEN MIXED WITH 6:4:9 PRICE WAS 340.WHAT'S THE PRICE WHEN MIXED IN 5:6:8 RATION PRICE IS

4327


Find the next series of 1,2,2,4,8,?

789


Find the next letter in the series c,o,m,p,u,t,e--

712


In a survey of town of Wasco, it was found that 65% of the people surveyed watched the news on television, 40% read newspaper, and 25% read a newspaper and watched the news on television. What percent of the people surveyed neither watched the news on the television nor read a newspaper?.

850