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 average of seven numbers is 2.5 then their product

1076


The first United States Solicitor General, Benjamin H. Bristow, __________________________ was born in 1832 and served in the Grant administration from 1874 to 1876. Earlier in his life, Bristow served as a lieutenant colonel in the 25th Kentucky Infantry was born in 1832 and had served in the Grant administration from 1874 to 1876. Earlier in his life, Bristow served as a lieutenant colonel born in 1832 and served in the Grant administration from 1874 to 1876. Earlier in his life, Bristow had served as a lieutenant colonel in the 25th Kentucky Infantry born in 1832 and appointee in the Grant administration from 1874 to 1875. Earlier in his life, Bristow served as a lieutenant colonel in the 25th Kentucky Infantry

1844


Express 16 m/s into Km/hr

1308


Imagine a rectangle.Its length=2*width.A square of 1 inch is cut on all corners so that the remaining portion forms a box when folded.the volume of the box is_____ cubic inches.find the original dimensions of the box.

1273


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

1294


if 2 miles of fence enclose a square plot of 160 acres,how large a square will 4 miles of fence

6842


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

1194


The area of the quadrilateral is 36 What is a*b

1268


One clock ringes 7 O'clock in 7 sec.In how many seconds it will ring 10 O'clock.

1178


15 lit of water containing 20 % of alcohol ,then added 5 lit of water .What is the % of alcohol?

1186


Subbu starts from a point O at 10.00 am , overtakes Ajay, who is moving in the same direction, at 11.00 a.m. and Bhuvan moving in the opposite direction at 12.00 (noon). If the speed of Bhuvan is one fourth the speed of Subbu, at what time will Ajay and Bhuvan cross each other.

2027


Complete the sequence A, E ,I ,M ,Q ,U , _ , _?

1153


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?

1741


One person meet his friend on 12:30 then on 1:20 on second day, on third day -----?

1177


Find the hypotenuse of a right angle isoceles triangle whose area is 50.

1176