C#
\npublic int ArraySign(int[] nums) {\n\tvar result = 1;\n\tforeach (var num in nums) {\n\t\tif (num == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tresult *= num > 0 ? 1 :
```\npublic int ArraySign(int[] nums) {\n\tvar result = 1;\n\tforeach (var num in nums) {\n\t\tif (num == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tresult *= num > 0 ? 1 : -1;\n\t}\n\treturn result;\n}\n```
[]