Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- int i;
- char phrase1[100],phrase2[100];
- printf("Entre com uma frase :\n");
- gets(phrase1);
- printf("Entre com outra frase :\n");
- gets(phrase2);
- if (strlen(phrase1) > strlen (phrase2))
- printf("Primeira frase eh maior!\n");
- else if (strlen(phrase2) > strlen(phrase1))
- printf("Segunda frase eh maior!\n");
- else
- printf("Frases de mesmo tamanho!\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment