63 845
Assignments Done
99,2%
Successfully Done
In August 2018

Answer to Question #20180 in C++ for apoorva

Question #20180
Write a program to compare two strings for equality.
Expert's answer
#include <iostream>
#include <string>
using namespace std;
int main(){

string a,b;
cout<<"Enter two strings\n";
cin>>a>>b;
if (a == b) cout<<"A and B are equal\n";
else cout<<"A and B aren't equal\n";

system("pause");
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions