fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main(){
  6. int[] M = new int[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
  7. int mul = 1;
  8. int idx = 1;
  9. while (idx < M.Length) {
  10. mul *= M[idx];
  11. idx *= 2;
  12. }
  13. Console.WriteLine(mul);
  14. }
  15. }
Success #stdin #stdout 0s 131520KB
stdin
Standard input is empty
stdout
270