ques.-Input an array and then print the repeating characters?? Example: Input:1,3,23,11,44,3,23,2,3. Output:3,23
Show us some effort of creating the programs and we will be more than happy to help you where you cannot move forward.
Code: # include<stdio.h> # include<conio.h> void main() { int i,j,count=0; int array[10]; for(i=0;i<10;i++) scanf("%d",&array[i]); for(i=0;i<10;i++) { for(j=0;j<10;j++) { if (array[i]==array[j]) count++; } if(count>=2) printf("%d",array[i]); } }
I gave you the solution but u should have done it yourself.....I am disappointed by the fact that you people dnt even try to write a program...anywayz..your wish..