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 person was fined for exceeding the speed limit by 10 mph. Another person was also fined for exceeding same speed limit by twice the same. If the second person was travelling at a speed of 35 mph, find the speed
A tailor has 37.5 metres of cloth and he has to make 8 piecesout of a metre of cloth. How many pieces can he make out of this cloth?
Radha,Geeta&Revathi went for a picnic.After a few days they forgot the date,day and month on which they went to picnic.Radha said that it was on Thursday,May 8 and Geeta said that it was Thursday May 10.Revathi said Friday Jun 8.Now one of them told all things wrongly,others one thing wrong and the last two things wrongly.If April 1st is tuesday what is the right day,date and month?
The average salary of Ram, Shyam and Sundar is 95 Rs. per week. If Ram earns Rs.115 and Shyam earns Rs.65.What is the salary of Sundar.
A class consists of 100 students, 25 of them are girls and 75 boys; 20 of them are rich and remaining poor; 40 of them are fair complexioned. The probability of selecting a fair complexioned rich girl is
Now i am doing RHCE (Red Hat Certified Engineer). Please give some interview questions of linux.
During the early months of 2009, some economists concluded that the slew of U.S. government programs created during the fall of 2008 to stabilize an economy marked by an absence of credit, a wave of enormous asset write downs, a precipitous decline in housing prices, and a historic loss of consumer confidence _________________ has not succeeded in engendering healthy intra-bank credit flows and reviving depressed equity prices has not succeeded in engendering healthy intra-bank credit flows and bringing about the revival of have not succeeded in engendering healthy intra-bank credit flows and reviving depressed equity prices have not succeeded in engendering healthy intra-bank credit flows and to revive depressed equity prices
Why do we buy you?
in a question ,last part has, the ages of two people has the ratio of 6:6 and by adding the numbers we get 44, after how many years the ratio would be 8:7?
1,40,00,000 pencils are put up straight. all the pencils are of length range 3 to 6 inches. 80% of the pencils have average of five inches. so the find out the total length spanned by the pencils.
In a class of 60 boys, 45 like pizza, 30 like burger and 5 like neither. Find number of boys who like both?
A student gets 70% in one subject, 80% in the other. To get an overall of 75% how much should get in third subject.
Price of product is reduced by 30%. What % should be increased to make it 100 % ?
which of the following leaders was not among the moderates
Find the next three terms of the series; 1, 4, 9, 18, 35 - - - - -