@RaiaNKnight
96 / 70 / 7
Регистрация: 29.06.2011
Сообщений: 465
|
30.06.2011, 16:49
|
|
Номер 3
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| #include <iostream.h>
int main()
{
int a[3][4],i,j,b;
cout<<"Enter array"<<endl;
for(i=0;i<3;i++)
for(j=0;j<4;j++)
cin>>a[i][j];
cout<<"Enter b"<<endl;
cin>>b;
for(i=0;i<3;i++)
for(j=0;j<4;j++)
if(a[i][j]==b)
{
cout<<"Yes"<<endl;
system("pause");
return 0;
}
cout<<"No"<<endl;
system("pause");
} |
|
1
|