1.

Q4. Accept any two strings from the user. Display whether both the strings are equal or not. (do not use standard functions.)

Answer»

med in C++#include using namespace std;int main(){string first,second;COUT << "Enter a string" << endl;cin >> first;cout << "Enter ANOTHER string" << endl;cin >> second;if(first == second){cout << "STRINGS are equal" << endl;} else {cout << "Strings are not equal" << endl;}return 0;}



Discussion

No Comment Found