Skip to content

Commit f3bfe3a

Browse files
committed
Create problem27.c
1 parent 079ef84 commit f3bfe3a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

problem27.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)