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
4i+8j+10k. something like this.
new town is straight to the north of new york. A high way m runs from newtown making an angle of 61 degree south east. From new york there is also an high way n which runs northeast 61 degrees. If high ways m and n are straight then find out the acute angle made at their intersection point.
three clocks where set to true time .First run with the exact time ..second slows one minute/day. third gains one minute/day. after how many days they will show true time.
. Select the correct statement a. NEXT SENTENCE and CONTINUE functionally does the same. b. Never can code a DECLARE CURSOR statement in procedure division. c. Edited numeric characters can be included in arithmetic operations. d. The Sub parameters of a DCB parameter are Keyword parameters.
Next number in the series: 77,49,36,18,?
A persons salary iis decreased by steps of 20%, 15% and 10%. What will be the percentage decrease, if the salary is decreased in a single shot?
Time and speed time and work boat and streams
Find the next series: AA AB BC CE ?
2 Oranges,3 bananas and 4 apples cost rs.15 . 3 Oranges 2 bananas 1 apple costs rs 10. What is the cost of 3 oranges, 3 bananas and 3 apples
Find the next number in the series 12,21,,112,121,122---
A power unit is there by the bank of the river of 750 meters width. A cable is made from power unit to power a plant opposite to that of the river and 1500mts away from the power unit. The cost of the cable below water is Rs. 15/- per meter and cost of cable on the bank is Rs.12/- per meter. Find the total of laying the cable.
There is a safe with a 5 digit number as the key. 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.
Can someone please send me the question paper for graduate level both tier 1 and tier 2 with detailed solution of maths exam (Tier 2). Please,suggest me the ways and books to prepare for this exam.Please, send this answer on my email Id
2. Masi specialises __ plesent ,well balanced wines into, about ,in, with 3. By the time I arrived __ the pub she all ready left in, on , at, into 4. erbiage the act of doing something the use many words witout nessecity a vegitable non of the above
Hi Guys. I am an Instrumentation and Control Engineer(ICE) and have filled various PSU entrance exam forms. I wanted to know if anyone of you out there had any material for the preparation of the same. Any sort of material will be greatly appreciated. Be it previous year questions (Aptitude, GK or Technical) , study material or links to websites which do have this material. PSUs that I am going to appear in are HPCL, SAIL, ECIL and finally Gate. Any suggestions and advice is greatly welcomed. My E-Mail ID is kris_sreekanth86@yahoo.co.in