jacob_segundo

comparando string

Mar 17th, 2021 (edited)
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4. int main(){
  5. char str1[100], str2[100];
  6. printf("password:\n");
  7. gets(str1);
  8. printf("confirmar senha:\n");
  9. gets(str2);
  10. if(strcmp(str1,str2)==0)
  11. printf("seha correta\n");
  12. else
  13. printf("senha errada\n");
  14.  
  15.     system("pause");
  16.     return 0;
  17.  
Add Comment
Please, Sign In to add comment