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

HERE = COMES – SHE, (Assume s = 8), Find value of R + H + O

1752


What annual payment will discharge a debt of rs. 6,450 Due in 4 years at 5% per annum simple interest?

1359


If a certain computer is capable of printing 4900 monthly credit card bills per hour, while a new model is capable of printing at a rate of 6600 per hour, the old model will take approximately how much longer than the new model to print 10000 bills?

1649


If x and x+10 are lengths containing right angle, what is the equation if area is 24 sq.cm

1137


A motorcycle travels a certain length taking 7 hrs in the journey ahead, while returning, the increased speed of 12km/hr takes about 5 hrs. What was the length covered in this journey?

1165


Mr. Sohan works for Azania Company. The company grants 1000 shares to Mr. Sohan in 2008. At that point each share is worth Rs. 100. In 2010, he decides to sell his entire stake and at that point, the value is Rs. 120 per share. The government declares that the tax to be paid is 10% of the entire profit. Due to the inflation, the value of a rupee in 2010 is equivalent to 0.8 of a rupee in 2008. In this situation, which of the following model indicates the actual tax to be paid by the investor?

1200


Which is the largest prime number that can be stored in a 9-bit register?

1174


How Can A Cake(circular) Be Cut Into 8 Pieces By Making Just 3 Cuts?

1127


There are 9 balls of equal size and same weight (they look similar) except 1. How may weighs required to find the dissimilar ball using a weighing balance?

1180


A man has Rs 2. He wins or loses Re 1 at a time. If he wins he gets Re 1 and if he loses the game he loses Re 1. He can loose only 5 times. He is out of the game if he earns Rs 5.Find the number of ways in which this is possible?

1277


If substitution is as it's burnout. Didn't remember. But this is one.

4713


g[0]=1,g[1]=-1,g[n]=2*g[n-1]-3*g[n-2] then calculate g[4]= ?

1618


The average of the first 100 positive integers is?

1206


Find odd one cat,dog,rabbit,hamster,elk.

1365


A triangle ABC is given, a line DE is parallel to base side and that cuts the triangle. The ratio of area of triangle to the area of trapezium given DE/BC= ?

1431