WAP to input a string and check all the characters are in same case or not.
Answers
Answered by
1
Answer:
To find whether a string has all the same characters. Traverse the whole string from index 1 and check whether that character matches the first character of the string or not. If yes, then match until string size. If no, then break the loop.
Answered by
0
Answer:
Determine the values of m and n, m, n> 0, such that both the equations x2 +mx + n = 0 and 2x2 + 4x + mn = 0 have equal roots.
solve
Attachments:
Similar questions