Need working code for a c program that will read a string from the key board. Co
ID: 3534145 • Letter: N
Question
Need working code for a c program that will read a string from the key board.
Conditions:
Even length: If length of the string is an even number then it should split the string into two strings of equal length.
Odd length: If length of the string is an odd number then it should spit the string into two strings where the first portion should have one more character than the second portion. Program should output two strings it created.
Example: if the input to the program is "2BeOrNOtToBe", the output of the program should be
2BeOrN
otToBe
If the input is "ToBeOrNOtToBe" the output of the program should be
ToBeOrN
oToBe
Explanation / Answer
//pleae rate
http://ideone.com/DVQZ8v
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.