Users Online

· Guests Online: 91

· Members Online: 0

· Total Members: 188
· Newest Member: meenachowdary055

Forum Threads

Newest Threads
No Threads created
Hottest Threads
No Threads created

Latest Articles

C# Program to Convert Upper case to Lower Case

C# Program to Convert Upper case to Lower Case

 

This is a C# Program to convert upper case to lower case.

Problem Description

This C# Program Converts Upper Case to Lower Case.

Problem Solution

Here the String is obtained in uppercase which is converted to lowercase using tolower().

Program/Source Code

Here is source code of the C# Program to Convert Upper case to Lower Case. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.

/*
 * C# Program to Convert Upper case to Lower Case
 */
using System;
public class Program
{
    public static void Main()
    {
        string str;
        Console.WriteLine("Enter the String in Uppercase :");
        str = Console.ReadLine();
        Console.WriteLine("String in LowerCase : {0}", str.ToLower());
        Console.ReadLine();
    }
}
Program Explanation

In this C# program, we are reading the string in uppercase using ‘str’ variable. Here the string is obtained in uppercase which is converted to lowercase using tolower(). Print the lower case value of the string.

 
Runtime Test Cases
 
Enter the String in Uppercase : SANFOUNDRY
String in Lowercase :sanfoundry

 

Comments

No Comments have been Posted.

Post Comment

Please Login to Post a Comment.

Ratings

Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Render time: 0.80 seconds
10,834,726 unique visits