Code
Mode```
//MMMMMMMMMMMMMMMMMMMMMMMMMMMM//
#include "stdafx.h"
#include "math.h"
#include "iostream"
#include "windows.h"
#include "string.h"
using namespace std;
int _tmain()
{
setlocale(0, "RUS");
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
char A[111], B[111], z;
int i,k=0,a=-1,v=-1;
cout<<"Введите текст:"<<endl;
gets_s(A);
cout<<"\n";
cout<<"--ПРОМЕЖУТОЧНЫЕ ВЫЧИСЛЕНИЯ--"<<endl;
for(i=0;A[i]!='\0';i++)
{
if(((A[i]=='а') || (A[i]=='a') || (A[i]=='A') || (A[i]=='А')) && (a==-1))
{
a=i;
cout<<"ОБНАРУЖЕНА БУКВА А !!!"<<endl;
}
if(((A[i]=='в') || (A[i]=='v') || (A[i]=='В') || (A[i]=='V')) && (v==-1))
{
v=i;
cout<<"ОБНАРУЖЕНА БУКВА В или V !!!"<<endl;
}
cout<<"A["<<i<<"]="<<A[i]<<" ";
cout<<"a="<<a<<" "<<"v="<<v<<endl;
}
cout<<"----------------------------"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<endl;
if ((a!=-1) && (v!=-1))
{
cout<<"Текст между буквами А и В"<<endl;
for(i=a+1;i!=v;i++)
{
cout<<A[i];
}
}
else
{
cout<<"В тексте нет \"границ(ы)\" А или В:"<<endl;
}
cout<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<"\n"<<endl;
system("pause");
return 0;
}
```