DEV Community

Mushtariy
Mushtariy

Posted on

String Operations

a)Quyidagi kod nima qiladi?

string name = "John";
string upperName = name.ToUpper();
Console.WriteLine(upperName);
Enter fullscreen mode Exit fullscreen mode

John so'zini katta harflarda chiqarib beradi ya'ni John - JOHN;

b)Stringlarni birlashtirishning bir usulini keltiring.

Console.WriteLine($"string va string");
Console.WriteLine(string + string);

c)Stringlarni solishtirish uchun qaysi metod ishlatiladi?

or ili and

Top comments (0)