Close
Topic list
Convert To Lower Case
EASY
Strings
Topics (Covered in this problem)
Problem solved
Skill meter
Strings
-
-
Other topics
Problem solved
Skill meter
Matrices (2D Arrays)
-
-
-
-
Sorting
-
-
Binary Search
-
-
Stacks & Queues
-
-
Trees
-
-
Graph
-
-
Dynamic Programming
-
-
Greedy
-
-
Tries
-
-
Arrays
-
-
SQL
-
-
Binary Search Trees
-
-
Heap
-
-
Bit Manipulation
-
-
Solve problems & track your progress
Checkout your overall progress in every topic here
Become
Sensei
in DSA topics
Open the topic and solve more problems associated with it to improve your skills
Check out the skill meter for every topic
See how many problems you are left with to solve for cracking any stage. Score more than zero to get your progress counted.

# Convert To Lower Case

Contributed by
Paritosh Singh
Easy
0/40
Share

## Problem Statement

#### You are given a string ‘str’, your task is to convert all the characters of the string into lowercase letters.

##### For example:
``````You are given, ‘str’ = ‘AbcdEfgh’, in this string if you convert all the characters into lowercase, the string will be ‘abcdefgg’. Hence it is the answer.
``````
Detailed explanation ( Input/output format, Notes, Constraints, Images )
##### Sample Output 1:
``````abcdefgh
aaaab
``````
##### Explanation for sample Input 1:
``````For the first test case, ‘str’ = ‘AbcdEfgh’, in this string if you convert all the characters into lowercase, the string will be ‘abcdefgg’. Hence it is the answer.

For the second test case, ‘str’ = ‘AAAAb’,  in this string if you convert all the characters into lowercase, the string will be ‘aaaab’. Hence it is the answer.
``````
##### Sample Input 2:
``````2
abcde
ABCDE
``````
##### Sample Output 2:
`````` abcde
abcde
``````
Auto
Console