From 39f662c84667c641274feda21eb8cd4ff62cc3c4 Mon Sep 17 00:00:00 2001 From: Ayushmaan693 <78262885+Ayushmaan693@users.noreply.github.com> Date: Thu, 27 Oct 2022 20:08:04 +0530 Subject: [PATCH] UniqueElements.c This program prints the unique elements present in an array. --- C/UniqueElements.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 C/UniqueElements.c diff --git a/C/UniqueElements.c b/C/UniqueElements.c new file mode 100644 index 0000000..1197696 --- /dev/null +++ b/C/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