+ 1

Challenge for C++ programmer

In a string, if the no of letters is even, check if the first and last letter are capital, if not change them to upper. If the no of letters is odd, convert the string into proper case (ie agd jd -- Agd Jd). you can't use library functions.

28th Nov 2017, 2:20 AM
Sagar Makol
Sagar Makol - avatar
3 Answers
+ 5
Hint try using a char array, read the string, put the desired format to the array.
28th Nov 2017, 2:57 AM
Manual
Manual - avatar
+ 3
Is that your homework?
28th Nov 2017, 2:56 AM
Manual
Manual - avatar
0
nope not my homework
28th Nov 2017, 8:49 AM
Sagar Makol
Sagar Makol - avatar