How can I convert all string to capital ?

Question

How can i convert small letter to capital letters?

in progress 0
Second Ask Human 6 days 1 Answer 13 views Learner 0

Answer ( 1 )

  1. For this we just need to use   .ToUpper() method of the C#.

    Code snippet below:
    string a = “”;
    Console.WriteLine(“Enter anthing”);
    a = Console.ReadLine();
    Console.WriteLine(“You enter: {0}”, a.ToUpper() );
    Console.ReadKey();

    }

    }

Leave an answer