Blog

Seleccione el resultado del siguiente código:

class Program {
public static string DoStringManupulation(string str) {
string value = “”;
for (int i = 1; i < str.Length; i++) {
int Nested = 0;
// Converts the numeric Unicode character at the specified position
//in a specified string to a double-precision floating point number

double compare = char.GetNumericValue(str[i]);
while (Nested < compare) {
value += str[i – 1];
Nested ++;
}
i++;
}
return value;
}

static void Main(string[] args) {
string res = DoStringManupulation(“Z3z2m2R3 very good”);
Console.WriteLine(res);
}
}