Pagini recente » Cod sursa (job #1727934) | Cod sursa (job #2164086) | Cod sursa (job #1224198) | Cod sursa (job #2043465) | Cod sursa (job #808114)
Cod sursa(job #808114)
#include <iostream>
#include <fstream>
#include <string.h>
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
char a,b;
long int x,y;
int main()
{
b=' ';
while( fin.get(a) )
{
if(((65<=a)&&(a<=90))||((97<=a)&&(a<=122)))x++;
else
{
if(((65<=b)&&(b<=90))||((97<=b)&&(b<=122))) y++;
}
b=a;
}
fout<<x/y;
return 0;
}