2
I would like to print the amount of words in a sentence declared within a string.
Example:
string frase = "Meu carro vermelho é caro"
cont = 0;
aux = -1;
while(frase.lenght() < frase =="") {
aux++;
if(cont < aux){
cont++;
}
Console.writeln(cont);
}
+1 by placing the references of the methods used
– Eric Wu