We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 079ef84 commit f3bfe3aCopy full SHA for f3bfe3a
problem27.c
@@ -0,0 +1,34 @@
1
+//Solved by
2
+//Aishwarya.J
3
+//IIIrd yr,IT A.
4
+
5
+#include<stdio.h>
6
+main()
7
+{
8
+int i,j,a[10],flag;
9
+printf("Enter the total number of elements");
10
+scanf("%d",&n);
11
+for(i=0;i<n;i++)
12
13
+ scanf("%d",&a[i]);
14
+}
15
+printf("Enter the input string");
16
+for(j=0;j<n;j++)
17
18
+ scanf("%d",&a[j]);
19
20
+while((a[i]&&a[j])<n)
21
22
+if(a[i]==a[j])
23
24
+flag=1;
25
+i++;
26
+j++;
27
28
+else
29
30
+flag++;
31
+printf("%d",a[i]);
32
33
34
0 commit comments