Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
practice program
//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) { // הדפסת השורה הראשונה במערך // int row=0; // int [,] intMatrix = new int [3,5] {{1,2,3,4,5}, // הגדרת המערך // {6,7,8,9,0}, // {1,0,1,0,1}}; // for( int col=0; col<intMatrix.GetLength(1); col++) // לולאה לסריקת התאים של השורה הנוכחית // { // Console.Write(intMatrix[row,col]+ " "); // הדפסת התא הנוכחי עם רווח // } //------------------------------------------------------------------------------------ // הדפסת העמודה ספציפית במערך int col=2; int [,] intMatrix = new int [3,5] {{1,2,3,4,5}, // הגדרת המערך {6,7,8,9,0}, {1,0,1,0,1}}; for( int row=0; row<intMatrix.GetLength(1); row++) // לולאה לסריקת התאים של העמודה הנוכחית { Console.WriteLine(intMatrix[row,col]+ " "); // הדפסת התא הנוכחי עם רווח } } } }
run
|
edit
|
history
|
help
0
problem version 2
Fortnite Generator
Types
Games
sdfghjkikujyhtgrfedw
Some C# advanced stuff
Array Comparison
Code1
1 to 1000 armstrong
Const