Subversion Repositories svnkaklik

Compare Revisions

No changes between revisions

Ignore whitespace Rev 263 → Rev 264

/programy/C/pismena/pismena.c
0,0 → 1,38
/////////////////////////////////////////////////////////////////
// Program spocita pocet malych, velkych pismen a cislic v napsane radce.
/////////////////////////////////////////////////////////////////
 
#include <stdlib.h>
#include <stdio.h>
 
 
int cti_radku(int* mala,int* velka,int* cisla)
{
int znaky = 0;
char c;
 
while ((c=getchar()) != '\n')
{
znaky++;
if('a'< c <'z') *mala++;
if('A'< c <'Z') *velka++;
if('0'< c <'9') *cisla++;
}
return znaky;
}
 
 
int main()
{
 
int mala=0,velka=0,cisla=0,znaky=0;
 
znaky=cti_radku(&mala, &velka, &cisla);
printf("Bylo napsano %d znaku z toho ",znaky);
printf("%d malych pismen,",mala);
printf("%d velkych pismen",velka);
printf(" a %d cislic.",cisla);
}
/programy/C/pismena/pismena.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property