SHARE
TWEET

Untitled

a guest May 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<iostream>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int i;
  9. char x1[20],x2[20];
  10. bool jednako;
  11.  
  12. printf("Unesi prvu rijec:- ");
  13. gets(x1);
  14. printf("Unesi drugu rijec:- ");
  15. gets(x2);
  16.  
  17. for(i=0;x1[i]!='\0';i++){
  18. if(x1[i]==x2[i]){
  19.   jednako=1;
  20.  }
  21.  else{
  22.   jednako=0;
  23.  }
  24. }
  25. cout<<jednako;
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top