Here is simple demo program to print a given string in uppercase and lowercase string using string inbuilt function.
C# Program :
using System;
namespace MyApp
{
class Case_class
{
static void Main(string[] args)
{
Console.WriteLine("Enter a string:");
string str = Console.ReadLine();
Console.WriteLine(" Lowercase string: "+ str.ToLower());
Console.WriteLine(" Uppercase string: " + str.ToUpper());
Console.ReadLine();
}
}
}
No comments:
Post a Comment