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
the average of seven numbers is 2.5 then their product
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
Express 16 m/s into Km/hr
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.
Find the next three terms of the series; 1, 4, 9, 18, 35 - - - - -
if 2 miles of fence enclose a square plot of 160 acres,how large a square will 4 miles of fence
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
The area of the quadrilateral is 36 What is a*b
One clock ringes 7 O'clock in 7 sec.In how many seconds it will ring 10 O'clock.
15 lit of water containing 20 % of alcohol ,then added 5 lit of water .What is the % of alcohol?
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.
Complete the sequence A, E ,I ,M ,Q ,U , _ , _?
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?
One person meet his friend on 12:30 then on 1:20 on second day, on third day -----?
Find the hypotenuse of a right angle isoceles triangle whose area is 50.