#include
using namespace std;
#define N 30
int main(int argc, char* argv[])
{
setlocale(LC_ALL, "Russian");
int a[N];
int k = 0;
for(int i=0;i {
cout<<"a["<<i+1<<"]=";<br> cin>>a[i];
}
for(int i=1;i if(a[i]==a[i-1])
k++;
cout<<k<<"пар"<<endl;<br> system("pause");
}