Resposta_SOpt_369698

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		int[] matriz = new int[3]; 
		matriz[0] = 2;
		matriz[1] = 0;
		matriz[2] = 5;
		
		int result = 0;
		for(int i = matriz.Length-1, j = 1; i >= 0; i--, j*=10)
		{
			result = result + (j * matriz[i]);
		}
		Console.WriteLine(result);
	}
}
;