#include <stdio.h>
int main() {
char var[50] = " Write Once Run Everywere ";
int cont = 0;
for (int i = 0; i < 50; i++) {
if (var[i] == ' ') {
cont++;
}
}
printf("Existem %d espaços em branco", cont
); }
//http://pt.stackoverflow.com/q/185005/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCWNoYXIgdmFyWzUwXSA9ICIgV3JpdGUgT25jZSBSdW4gRXZlcnl3ZXJlICI7CglpbnQgY29udCA9IDA7Cglmb3IgKGludCBpID0gMDsgaSA8IDUwOyBpKyspIHsKCSAgICBpZiAodmFyW2ldID09ICcgJykgewoJICAgICAgICBjb250Kys7CgkgICAgfQoJfQoJcHJpbnRmKCJFeGlzdGVtICVkIGVzcGHDp29zIGVtIGJyYW5jbyIsIGNvbnQpOyAgIAp9CgovL2h0dHA6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzE4NTAwNS8xMDE=