Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Podejrzana karteczka :0
#include <iostream> #include <string.h> using namespace std; int main() { int ilel; char linia[11][33]; scanf("%d",&ilel); for(int i=0;i<=ilel;i++) { fgets(linia[i], 32, stdin); strtok(linia[i], "\n"); } int x,y,c; for(int i=0;i<ilel;i++) { x=strlen(linia[i+1]); // ilosc znakow for(int j=0;j<=x;j++) // ilosc cyfr { if((linia[i+1][j]>=48)&&(linia[i+1][j]<=57)) {y++;} else if((linia[i+1][j]>=65)&&(linia[i+1][j]<=90)|| // ilosc (linia[i+1][j]>=97)&&(linia[i+1][j]<=122)) // liter {c++;} } printf("%d %d %d\n",x,c,y); y=0; c=0; } }
run
|
edit
|
history
|
help
0
My Type - nicro
Updated Linked Lists - 5/10/2017 V4.0
IAR compiler bug test code
Microsoft - MaxEmployeeAttendence (R repititions - Optimised DP)
ProdPriceEnum
PayTax
Vector
HW0
mergesort tree
ONP