#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char palavras[500];
int tam;
printf("Digite uma frase:\n");
scanf("%500[^\n]", palavras);
//fgets(palavras, 500, stdin); -> conta o enter tbm, aí teria que remover o enter do fgets
tam = strlen(palavras);
printf("\n\tTamanho: %d", tam);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: