Anonymous     Text only     30 May 2012    
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "stdafx.h"
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
char csymbol[100];
int count=0;
int Kol=0;
cin>>csymbol;
while (csymbol[count]!='0')
{
if ((csymbol[count]=='а')||
(csymbol[count]=='я')||
(csymbol[count]=='о')||
(csymbol[count]=='ё')||
(csymbol[count]=='у')||
(csymbol[count]=='ю')||
(csymbol[count]=='ы')||
(csymbol[count]=='и')||
(csymbol[count]=='э')||
(csymbol[count]=='е'))
Kol++;
count++;
}
cout<<"Количество букв "<<Kol;
return 0;
}