Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Viernes
- {
- class Program
- {
- static void Main(string[] args)
- {
- //SpaceCar sp = new SpaceCar();
- int[,] marte = new int[5, 5];
- //preenchendo a matriz
- for (int i = 4; i >= 0; i--)
- {
- for (int j = 4; j >= 0; j--)
- {
- marte[i,j] = i + j;
- }
- }
- //mostrar matriz
- for (int i = 4; i >= 0; i--)
- {
- for (int j = 4; j >= 0; j--)
- {
- Console.Write(" "+ marte[i,j]);
- }
- Console.WriteLine("\n");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment