What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-27 16:05:25
Find Number of Repetitions of Substring
using System; using System.Linq; public class Program { public static int NumberOfRepeats(string str) { int length = str.Length; int checkLength = 2; while (checkLength < length) { if (length % checkLength == 0) { var times ... Add solution -
C# 2022-03-17 06:45:03
c sharp substring
// To get a substring of a string use 'Substring()' // The first value is the index of where to start and the second // value is the lenght of the substring. string str = "Hello World!" str.Substring(3, 4) // Output: "lo W" // If yo... Add solution
Best helpers
Shaples
+5
Tranquilled
+5
Kozuch
+5
The 313137
+5
Toby Stewart
+5
Moez
+5
Stelle
+5
Kathrin
+5
Moradnejad
+5