Mridul-1-Sharma / data_structures_algos

Contribute to this repository with valid pull request to Hacktoberfest 2022 and earn awesome swags & T-shirts. This is a beginner friendly Project.
MIT License
7 stars 27 forks source link

Convert an uppercase to a lowercase and a lowercase to an uppercase #37

Closed JunJul closed 2 years ago

JunJul commented 2 years ago

Hi, this is my first contribution for the Hacktoberfest. We can convert a character to lowercase or uppercase by ASCII values. When there is an uppercase character in the string, we plus 32 because A is 65 and a is 97. a is 65 + 32 : 97. When there is a lowercase, we can minus 32 to get the uppercase.

JunJul commented 2 years ago

Sorry. I am not sure how to delete my initial changes. The second one is the correct one.

JunJul commented 2 years ago

@Mridul-1-Sharma hi I provided the description.