#include<stdio.h>
#include<conio.h>
int main()
{
int i,j,count;
int a[]={12,15,11,10,16,12,17,19,18,10};
printf("Non Repeted number are: ");
for(i=0;i<10;i++)
{
count=0;
for(j=0;j<10;j++)
{
if(a[i]==a[j])
{
count++;
}
}
if(count==1)
{
printf("%d,",a[i]);
}
}
getch();
return 0;
}
#include<conio.h>
int main()
{
int i,j,count;
int a[]={12,15,11,10,16,12,17,19,18,10};
printf("Non Repeted number are: ");
for(i=0;i<10;i++)
{
count=0;
for(j=0;j<10;j++)
{
if(a[i]==a[j])
{
count++;
}
}
if(count==1)
{
printf("%d,",a[i]);
}
}
getch();
return 0;
}
No comments:
Post a Comment