UVA Solution 494 – Kindergarten Counting Game – Solution in C,C++ – Volume 4
UVA Online Judge Solution 494 – Kindergarten Counting Game | Volume 4
UVA Problem Link -494 – Kindergarten Counting Game solve
Problem Name: 494 – Kindergarten Counting Game solution
Problem Number : UVA – 494 – Kindergarten Counting Game code
Online Judge : UVA Online Judge Solution
Volume: 4
Solution Language : C,C plus plus
UVA Solution 494 – Kindergarten Counting Game Code in C/CPP:
#include<stdio.h>
int main() {
char s[1001];
while(gets(s)) {
int i, flag = 0, count = 0;
for(i = 0; s[i]; i++) {
if((s[i] >= 'A' && s[i] <= 'Z') ||
(s[i] >= 'a' && s[i] <= 'z'))
flag = 1;
else {
count += flag;
flag = 0;
}
}
count += flag;
printf("%dn", count);
}
return 0;
}
Tags: UVA Online Judge Solution, UVA OJ Solution list, UVA Problems Solution, UVA solver, UVA all problem solution list, UVA 494 – Kindergarten Counting Game code in C, UVA 494 code in C++, UVA 494 – Kindergarten Counting Game solution in C, UVA 494 solution