Cod sursa(job #16280)

Utilizator sibiAli Alexandra sibi Data 12 februarie 2007 19:46:17
Problema Text Scor 20
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include<fstream.h>
int main()


  {ifstream f("text.in");
  ofstream g("text.out");
  char n;
  int i=0,d=0;

  while(f.get(n))

    if (n>='A' && n<= 'z')  d++;
               else i++;

  g<<d/i;
  return 0;}