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 80d81ba commit cdae990Copy full SHA for cdae990
problem10.c
@@ -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
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
33
+if(b[i]==0)
34
+printf( "%d\n" ,i);
35
0 commit comments