• 2022-06-07
    下面的程序功能是实现字符串大小写的转换并倒序输出。public static void Main(string[] args){ string str = "HelloWorld"; ______ sb=new StringBuilder(); for (int i = 0; i &lt; str.______ ; i++) { if (str[i] >= 'a' && str[i] <= 'z') { sb.Append( str[i].ToString().ToUpper()); } else { sb.Append( str[i].ToString().______ ()); } } Console.WriteLine(sb.ToString()); Console.ReadKey();}[/i][/i][/i][/i]