Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- int main(){
- char s[101], r[101];
- //Ler uma string
- scanf("%s %s", s, r);
- //Calcular o tamanho da string
- int tam1 = 0;
- while(s[tam1] != '\0'){
- tam1++;
- }
- int tam2 = 0;
- while(r[tam2] != '\0'){
- tam2++;
- }
- if(tam1 > tam2) printf("primeira");
- else if (tam1 == tam2) printf("iguais");
- else printf("seguunda");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement