From 12da17c2622645b32a995a1bbd0ec29ba7cd63ac Mon Sep 17 00:00:00 2001 From: Ayushmaan693 <78262885+Ayushmaan693@users.noreply.github.com> Date: Thu, 27 Oct 2022 20:09:52 +0530 Subject: [PATCH] UniqueElements.c This program prints the unique elements present in an array. --- c_programs/UniqueElements.c | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 c_programs/UniqueElements.c diff --git a/c_programs/UniqueElements.c b/c_programs/UniqueElements.c new file mode 100644 index 0000000..1197696 --- /dev/null +++ b/c_programs/UniqueElements.c @@ -0,0 +1,38 @@ +#include +int main() +{ + int a[10000],b[10000],i,j,n,c=0 ; + printf("Enter size of the array : "); + scanf("%d", &n); + printf("Enter elements in array : "); + for(i=0; i