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

On Monday a manufacturer processed a batch of bats, on Tuesday he processed three times as many, and on Wednesday he processed 4000 bats. In the three days, He processed 16000 bats. How many did he process on Tuesday?

1124


‘a‘ number of persons work daily ‘b’ hours to produce ‘c’ items. If ‘d’ persons walks away from the group what will be the number of hours to produce ‘c’ items. ?

1313


x + 4 y relation between x and y is x/2y = 3/2 ie x = 3y find the x -2y ratio

1089


02: 1/3 of girls , 1/2 of boys go to canteen .What factor and total number of classmates go to canteen?

1455


Each row of letters or numbers has a rule connecting them. Write the next number or letterin the brackets. 1 , 4 , 9 , 16 , 25 , 36 , (_ _ _)

1239


A person spending out 1/3 for cloths , 1/5 of the remaining for food and 1/4 of the remaining for travelles is left with Rs 100/- . How he had in the beginning ?

1285


If 15 pens costs Rs.90..then what will be the cost of 22pens?

1617


The price of sugar increases by 20%, by what % house-wife should reduce the consumption of sugar so that expenditure on sugar can be same as before

1168


Numbers of animals is 11 more than the number of birds. If the number of birds were the number of animals and number of animals were the number of birds( ie., interchanging number s of animals and birds.), the total number of legs get reduced by one fifth(1/5). How many no. of birds and animals were there?

1822


Express 16 m/s into Km/hr

1266


In which of the system, decimal number 194 is equal to 1234?

1367


A clock is late by 1 minute 27 seconds in a month. Then how much will it be late in 1 day?

1723


A School Has 30% Students From Maharashtra .out Of These 20% Are Bombay Students. Find The Total Percentage Of Bombay?

1337


A car has run 10000 miles using 5 tyres interchangably,To have a equal wornout by all tyres how many miles each tyre should have run. answer 4000 miles/tyre

1249


What number should be added to or subtracted from each term of the ratio 17 : 24 so that it becomes equal 1 : 2.

1404