Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Matrix Main Diagonal
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { // Print 2D Array int [,] intMatrix = new int [3,3] {{1,2,3}, // הגדרת המערך {4,5,6}, {7,8,9}}; for( int row=0; row<intMatrix.GetLength(0); row++) // לולאה לסריקת השורות { Console.Write(intMatrix[row,row]+ " "); // הדפסת התא הנוכחי עם רווח Console.WriteLine(" "); // קפיצת שורה בהדפסה לשורה הבאה של המערך } } } }
run
|
edit
|
history
|
help
0
test2
Problem Name_single_digi
Fibonacci Series
hello
C# Bubble Sort
HourCouter
Inheritance Ctor
Singly-linked IList<T> in C#
How to count the occurrence of each character in a string?
Pruebas