fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. var calculoChave = 0;
  6. foreach (var c in new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9}) calculoChave ^= c;
  7. WriteLine(calculoChave);
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/48414/101
Success #stdin #stdout 0.01s 131520KB
stdin
Standard input is empty
stdout
1