Question: Complete the function string comparison... Complete the function stringComparison, which will take two string (a and b) as input parameters. If a and b are
Complete the function stringComparison, which will take two string (a and b) as input parameters. If a and b are the same, return "aa". If they are not the same, return "a b b a". For example, if a is "cat" and b is "cat", return "catcat". if a is "cat" and b is "dog", return "cat dog dog cat" string stringComparison(string a, string b) { //code here return: //return your string to our main function. } (penalty regime: 0 %) 1 string stringcompar son(string a, string b) 2 { 3 //code here 4 return "": //return your string to our main function. 5 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
