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
Rahul took a part in cycling game where 1/5 ahead of him and 5/6 behind him then total number of participants?
Bactria double every 3 mins. It is N in 1 hour, when was it N/4?
15 software functions are there. It is known that atleast 5 of the m are defective. What is the probability that if three functions are chosen and tested, no errors are uncovered.
A building with height D shadow upto G. What is the height of a neighbouring building with a shadow of C
If log 0.317=……… and log 0.318=………. Then find the value of log 0.319.
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 .
If the vertex (5,7) is placed in the memory. First vertex (1,1) ?s address is 1245 and then address of (5,7) is ----------
starting from 2 upto how many numbers we need to check whether 907 is prime or not?
I want RRB loco pilot exam model question papers and previous rrb model solved question papers
there is a safe with a 5 digit No. The 4th digit is 4 greater than second digit, while 3rd digit is 3 less than 2nd digit. The 1st digit is thrice the last digit. There are 3 pairs whose sum is 11. Find the number. Ans) 65292.
The day before yesterday was WEDNESDAY then the day after tomorrow is?
A rectangular tank can hold m litres of milk. Find how many litres of milk can a tank hold when all its dimensions are doubled?
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 ?
sir i need rrb secunderabad goodsguard previous exam papers
A man shapes 3 cardboards in 50 minutes,how many cardboards does he shape in 5 hours? answer 18cardboards.