Skip to content

Commit b6b03aa

Browse files
committed
Update problem23.c
1 parent 1053ee8 commit b6b03aa

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

problem23.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
//By Jayakumar, ECE
2+
#include<iostream>
3+
using namespace std;
4+
5+
void main()
6+
{
7+
int n1,n2,i,j,a[50],b[50];
8+
cout<<"Enter the size of array 1";
9+
cin>>n1;
10+
for(i=0;i<n1;i++)
11+
cin>>a[i];
12+
cout<<"Enter the size of array 2";
13+
cin>>n2;
14+
for(j=0;j<n2;j++)
15+
cin>>b[j];
16+
for(i=0;i<n1;i++)
17+
{
18+
for (j=0;j<n2;j++)
19+
{
20+
if (a[i]==b[j])
21+
cout<<a[i];
22+
23+
}
24+
}
25+
}
26+
27+
128
/*Solved by
229
Maneesha, Dept of ECE
330
*/

0 commit comments

Comments
 (0)