using System;
public class Test
{
public static void Main()
{
var pi = 3.14;
var r = 10;
var area = pi * r * r;
var circum = 2 * pi * r;
Console.WriteLine("The area is {0}", area);
Console.WriteLine("The circumfrence is {0}", circum);
Test t = new Test ();
var rev = t.Reverse("Gray");
Console.WriteLine(rev);
}
public string Reverse(string text)
{
string result = string.Empty;
for(int i = text.Length - 1; i >= 0; i--)
{
result += text[i];
}
return result;
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCgl2YXIgcGkgPSAzLjE0OwoJdmFyIHIgPSAxMDsKCXZhciBhcmVhID0gcGkgKiByICogcjsKCXZhciBjaXJjdW0gPSAyICogcGkgKiByOwoJCglDb25zb2xlLldyaXRlTGluZSgiVGhlIGFyZWEgaXMgezB9IiwgYXJlYSk7CglDb25zb2xlLldyaXRlTGluZSgiVGhlIGNpcmN1bWZyZW5jZSBpcyB7MH0iLCBjaXJjdW0pOwoJCglUZXN0IHQgPSBuZXcgVGVzdCAoKTsKCXZhciByZXYgPSB0LlJldmVyc2UoIkdyYXkiKTsKCUNvbnNvbGUuV3JpdGVMaW5lKHJldik7CgkKCX0KCglwdWJsaWMgc3RyaW5nIFJldmVyc2Uoc3RyaW5nIHRleHQpCgl7CgkJc3RyaW5nIHJlc3VsdCA9IHN0cmluZy5FbXB0eTsKCQlmb3IoaW50IGkgPSB0ZXh0Lkxlbmd0aCAtIDE7IGkgPj0gMDsgaS0tKQoJCXsKCQkJcmVzdWx0ICs9IHRleHRbaV07CQoJCX0KCQlyZXR1cm4gcmVzdWx0OwoJfQp9