Advertisement
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;
- namespace ConsoleApplication170
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[,] matrica = new int[3, 3];
- Console.WriteLine("Unesite elemente u matricu: ");
- // UNOS ELEMENATA UNAZAD
- for (int i = matrica.GetLength(0) - 1; i >= 0; i--)
- {
- for (int j = matrica.GetLength(1) - 1; j >= 0; j--)
- {
- matrica[i, j] = int.Parse(Console.ReadLine());
- }
- }
- // ISPIS ELEMENATA
- for (int i = 0; i < matrica.GetLength(0); i++)
- {
- for (int j = 0; j < matrica.GetLength(1); j++)
- {
- Console.Write(matrica[i, j] + " ");
- }
- Console.WriteLine();
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement