题解 | #字符串反转#
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
string str=Console.ReadLine();
for(int x=str.Length-1;x>=0;x--)
{
Console.Write(str[x]);
}
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
string str=Console.ReadLine();
for(int x=str.Length-1;x>=0;x--)
{
Console.Write(str[x]);
}
}
}
}