#include<stdio.h> #include<conio.h> main() { int a[5],n,i,j,count=0,b[10],k=0; printf("enter array elements"); for(i=0;i<a.length;i++) scanf("%d",&a[i]); for(i=0;i<a.length;i++) { for(j=0;j<a.length;j++) { if(a[i]==a[j]) { printf("repeated element is %d",a[i]); b[k]=count+1; } } k++; } for(i=0;i<a.length;i++) { if(a[i]>a[i+1]) printf("%d is greatest and is the most repeated no",&a[i]); }