Your Task is to read two strings from the user and check if they are equal or not. If equal print 1 else 0 Note: Ignore Cases, Refer sample input and output: Input 1: eye EYE Output 1: 1 Input 2: srm SrM Output:1 Input 3: SRM SRN Output 3: 0 Test Case 1 Input (stdin) eye eye Expected Output 1 Test Case 2 Input (stdin) land lan Expected Output 0
#include <iostream>
#include<string.h>
using namespace std;
int main()
{
char a[10],b[10];
cin>>a>>b;
if(strcmp(a,b)==0)
cout<<"1";
else
cout<<"0";
return 0;
}