Pagini recente » Cod sursa (job #797715) | Istoria paginii runda/succes123 | Cod sursa (job #1200867) | Cod sursa (job #2169752) | Cod sursa (job #806951)
Cod sursa(job #806951)
#include <iostream>
#include <fstream>
#include <string.h>
using namespace std;
char a,b;
long int x,y;
int main()
{
ifstream fin("text.in");
ofstream fout("text.out");
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;
}