Answer the question
In order to leave comments, you need to log in
How to check if a string starts with a space c#?
using System;
using System.Security.Cryptography;
namespace lab4
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введiть 3 будь-якi рядки");
String r1 = Console.ReadLine();
String r2 = Console.ReadLine();
String r3 = Console.ReadLine();
StartsWith( r1, -);
}
}
}
Answer the question
In order to leave comments, you need to log in
if(r1[0]==" ")
Something like this, however, there is https://docs.microsoft.com/ru-ru/dotnet/api/system...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question