From 8788e49339e8a58a06528fcdf88bceb7f0702fc0 Mon Sep 17 00:00:00 2001 From: chetna3647 <47269572+chetna3647@users.noreply.github.com> Date: Sat, 25 Apr 2020 18:31:50 +0530 Subject: [PATCH] Create 17EGICS018_ARRAY_10 --- 17EGICS018_ARRAY_10 | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 17EGICS018_ARRAY_10 diff --git a/17EGICS018_ARRAY_10 b/17EGICS018_ARRAY_10 new file mode 100644 index 0000000..71acd60 --- /dev/null +++ b/17EGICS018_ARRAY_10 @@ -0,0 +1,37 @@ +#include +int main() +{ + int n, t, i; + printf("Enter the size of the array: "); + scanf("\n%d",&n); + int a[50]; + printf("Enter the array element: \n"); + for(i=0;it){ + printf("\n%d",i); + break; + } + else if(i==n-1 && ta[i]){ + printf("\n%d",n); + } + } + } + + return 0; +}