Question: can someone please fix my code? Everytime I run it it gives both strings. #include using namespace std; int main ( ) { string s
can someone please fix my code? Everytime I run it it gives both strings.
#include
using namespace std;
int main
string s s;
getlinecin s;
getlinecin s;
if slength slength
cout s endl;
else if slength slength
cout s endl;
else
cout "same length" endl;
return ;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
