aayushi-droid / Edabit-Solutions

Edabit Solutions using Cpp(C++)
MIT License
39 stars 154 forks source link

Add solution for Middle Character(s) of a String problem #207

Closed mrigankdembla closed 4 years ago

mrigankdembla commented 4 years ago

Description

Create a function that takes a string and returns the middle character(s). If the word's length is odd, return the middle character. If the word's length is even, return the middle two characters.

Program Name - Return the Middle Character(s) of a String Issue No.- #206

Type issue number after hash(#)

Checklist(self check)