Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void f(char *str1, char *str2)
  5. {
  6. int a=strcmp(str1,str2);
  7. if(a==0)
  8. printf("Napisy sa rowne");
  9. else
  10. printf("Napisy nie sa rowne");
  11. }
  12.  
  13. int main ()
  14. {
  15. char str1[100];
  16. char str2[100];
  17.  
  18. scanf("%s\n", str1);
  19. scanf("%s", str2);
  20.  
  21. f(str1,str2);
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement