Skip to content

Commit cdae990

Browse files
committed
Create problem10.c
1 parent 80d81ba commit cdae990

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

problem10.c

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//Solved by Kalai Arasi, Dept of CSE
2+
3+
#include<stdio.h>
4+
main()
5+
{
6+
int a[10],b[10];
7+
int number,i,j;
8+
a[0]=0;
9+
a[1]=1;
10+
a[2]=2;
11+
a[3]=3;
12+
a[4]=4;
13+
a[5]=4;
14+
a[6]=6;
15+
a[7]=7;
16+
a[8]=8;
17+
a[9]=9;
18+
for (i=0;i<10;i++)
19+
b[i]=0;
20+
for (i=0;i<10;i++)
21+
{
22+
number=i;
23+
for (j=0;j<10;j++)
24+
{
25+
if(a[j]==number)
26+
{
27+
b[i]=1;
28+
continue;
29+
}
30+
}
31+
}
32+
for (i=0;i<10;i++)
33+
if(b[i]==0)
34+
printf( "%d\n" ,i);
35+
}

0 commit comments

Comments
 (0)