#include <iostream>
using namespace std;
int main(){
//get the two stings from the user
string s1;
string s2;
cout<<"Enter the first string: ";
cin>>s1;
cout<<"Enter the second string: ";
cin>>s2;
//compare the two strings
if(s1==s2){
cout<<1;
}
else{
cout<<0;
}
return 0;
}
Comments
Leave a comment