Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 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

1368


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?

1246


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?

1412


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.

1251


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

1329


Now i am doing RHCE (Red Hat Certified Engineer). Please give some interview questions of linux.

3305


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

2188


Why do we buy you?

1755


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?

1413


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.

1307


In a class of 60 boys, 45 like pizza, 30 like burger and 5 like neither. Find number of boys who like both?

1718


A student gets 70% in one subject, 80% in the other. To get an overall of 75% how much should get in third subject.

1367


Price of product is reduced by 30%. What % should be increased to make it 100 % ?

1209


which of the following leaders was not among the moderates

2380


Find the next three terms of the series; 1, 4, 9, 18, 35 - - - - -

1343