Write a c program to find the second repeating element in an array
Answers
Answered by
0
#include <stdio.h>
#include<conio.h>
int main( )
{
clrscr( );
int a[10] = {1,6,4,7,6,3};
int i,j;
for ( i =0,i<=5,i++)
{
for(j = i+1; j <=5; j++)
{
if(arr[i] == arr[j])
{
printf(" %d ", arr[i]);
}
}
return 0;
}
#include<conio.h>
int main( )
{
clrscr( );
int a[10] = {1,6,4,7,6,3};
int i,j;
for ( i =0,i<=5,i++)
{
for(j = i+1; j <=5; j++)
{
if(arr[i] == arr[j])
{
printf(" %d ", arr[i]);
}
}
return 0;
}
Similar questions