#include<stdio.h>
#include<conio.h>
int main()
{
int m,n,count;
int a[]={2,5,1,1,6,2,7,9,8,1};
printf("Non Repeted number are: ");
for(m=0;m<10;m++)
{
count=0;
for(n=0;n<10;n++)
{
if(a[m]==a[n])
{
count++;
}
}
if(count==1)
{
printf("%d,",a[m]);
}
}
getch();
return 0;
}
#include<conio.h>
int main()
{
int m,n,count;
int a[]={2,5,1,1,6,2,7,9,8,1};
printf("Non Repeted number are: ");
for(m=0;m<10;m++)
{
count=0;
for(n=0;n<10;n++)
{
if(a[m]==a[n])
{
count++;
}
}
if(count==1)
{
printf("%d,",a[m]);
}
}
getch();
return 0;
}
Comments
Post a Comment