helos...!!!
wel am new to dis..!!!
but i hav a code to it...!!!
lets try out..!!!!!
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,count=1,flag,arr[5],p[5];
for(i=0;i<5;i++)
scanf("%d",&arr[i]);
p[0]=arr[0];
for(i=1;i<5;i++)
{
flag=0;
for(j=0;j<=count;j++)
{
if(arr[i]==p[j])
flag=1;
}
if(flag==0)
{
p[count]=arr[i];
count++;
}
}
for(i=0;i<count;i++)
{
printf("%d\t",p[i]);
}
getch();
}
try dis out dude..!!!