This commit is contained in:
2022-04-07 18:31:07 +02:00
parent db9f2ec687
commit baf73a91fe
837 changed files with 2323 additions and 0 deletions

37
MatrixBill/Program.cs Normal file
View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MatrixBill {
internal class Program {
public static void kiir(int[,] tomb) {
for(int i = 0; i < tomb.GetLength(0); i++) {
for(int j = 0; j < tomb.GetLength(1); j++) {
Console.WriteLine(tomb[i,j]);
}
}
}
static void Main(string[] args) {
int sor = Convert.ToInt32(Console.ReadLine());
int oszlop = Convert.ToInt32(Console.ReadLine());
int[,] tomb = new int[sor, oszlop];
double bekeres = 0;
for (int i = 0; i < tomb.GetLength(0); i++) {
for(int j = 0; j < tomb.GetLength(1); j++) {
Console.WriteLine("Adja meg a kovetkezo elemet");
bekeres = Convert.ToDouble(Console.ReadLine());
tomb[i,j] = Convert.ToInt32(Math.Round(bekeres));
}
}
kiir(tomb);
Console.ReadKey();
}
}
}