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 / amit rawat

#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
int ar[8]={2,3,4,5,2,9,8,7};
for(int i=0;i<8;i++)
{for(int j=i+1;j<8;j++)
{if(ar[i]==ar[j])
{cout<<"\n Repeated no is";cout<<ar[i];
}
}
}
getch();
}

Is This Answer Correct ?    33 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The distance b/w 2 places is 1000 miles and a man has a camel which eats an apple/mile. He has 3000 apples and want to transport from one to another. Camel can take 1000 apples at a time. when reaching the destination how many apples will be with him?

1277


hoe 1000000000 can be written as a product of two factors neither of them containing zeros

1315


A positive integer which when added to 1000 gives a sum which is greater than 10.06 when it is multiplied by 100 this positive integer is __.

1490


What amount of compound interest can be obtained on an amount of Rs. 4500 at the rate of 4% p.a. at the end of 2 years?

1422


Ramesh working alone on a job takes 12 days more than what he would have taken if Suresh had worked along with him while Suresh working alone on the same job takes 27 days more than what he would have taken if Ramesh had worked along with him. Find the time that both of them would take together to do the job.

1277


I and two of my friends were playing a game. For each win I get Rs 3. Totally I had three wins. Player 2 got Rs.9 and player 3 got Rs 12. How many games had been played?

2282


Find the hypotaneous of a right angle isosceles triangle whose area is 50.

1595


How many digits will be there to the right of the decimal point in the product of 95.75 and .02554 ?

1222


On BRIC So called New york has risen by on average sales plese chewk the incorrect sentence option 1. so called 2. Has risen 3. By on average

2402


in a city, there are 100 buildings numbered by corporation between 0-100, how many twos are shown in door,

1227


The average of 13 papers is 40. The average of the first 7 papers is 42 and of the last seven papers is 35. Find the marks obtained in the 7th paper?

1502


electrical question in diploma level

7843


Argentina had football team of 22 player of which captain is from Brazilian team and goalki from European team. For remaining player they have picked 6 from Argentinian and 14 from European. Now for a team of 11 they must have goalki and captain so out of 9 now they plan to select 3 from Argentinian and 6 from European. Find out no. of methods available for it

1470


If DBMDVUUB = CALCUTTA Then BOMBAY = ?

2263


There is a 4 inch cube painted on all sides. This is cut down into of 1 inch cubes. What is the no of cubes which have no pointed sides.

1379