Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Sum Matrix Row
//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 [,] intMatrix = new int [3,3] {{1,2,3}, // הגדרת המערך {4,5,6}, {7,8,9}}; int sum=0; for( int row=0; row<intMatrix.GetLength(0); row++) // לולאה חיצונית לסריקת השורות { sum=0; for( int col=0; col<intMatrix.GetLength(1); col++) // לולאה פנימית לסריקת התאים של השורה הנוכחית { sum +=intMatrix[row,col]; // חישוב סכום } Console.WriteLine(sum); // הדפסה } } } }
run
|
edit
|
history
|
help
0
Better Random number blocks
last ie
SingleDelegate
Random number between 1 - 100 between each value of 10 there will be a differnt message
GeneGenerator
min tree
Convert string to int
Katakana Quiz
koko
Калькулятор