using System; public class Test{ public static void Main() { char zeichen = 'A'; Console.WriteLine (zeichen); zeichen = ((zeichen-'A' + 3) %26) +'A'; Console.WriteLine (zeichen); }}
1 2 10 42 11
prog.cs(12,13): error CS0266: Cannot implicitly convert type `int' to `char'. An explicit conversion exists (are you missing a cast?) Compilation failed: 1 error(s), 0 warnings
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!